Class Imp_Prefs_Identity
This class provides an IMP-specific interface to all identities a user might have. Its methods take care of any site-specific restrictions configured in prefs.php and conf.php.
Copyright 2001-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
- Horde_Core_Prefs_Identity
- Imp_Prefs_Identity
Category: Horde
License: GPL
Author: Jan Schneider jan@horde.org
Author: Chuck Hagenbuch chuck@horde.org
Located at Prefs/Identity.php
public
|
#
__construct( mixed $params )
Reads all the user's identities from the prefs object or builds a new identity from the standard values given in prefs.php. |
public
|
|
public
string
|
#
getFromLine( integer $ident = null, string $from_address = '' )
Returns a complete From: header based on all relevant factors (fullname, from address, input fields, locks etc.) |
public
array
|
|
public
array
|
#
getSelectList( )
Returns an array with the necessary values for the identity select box in the IMP compose window. |
public
boolean
|
#
hasAddress( string $address )
Returns true if the given address belongs to one of the identities. This function will search aliases for an identity automatically. |
public
string
|
#
getFromAddress( integer $ident = null )
Returns the from address based on the chosen identity. If no address can be found it is built from the current user name and the specified maildomain. |
public
array
|
|
public
array
|
#
getAllFromAddresses( boolean $alias = false )
Returns an array with all identities' from addresses. |
public
array
|
|
public
array
|
#
getAllIdentityAddresses( )
Returns a list of all e-mail addresses from all identities, including both from addresses and tie addreses. |
public
array
|
|
public
integer
|
#
getMatchingIdentity( mixed $addresses, boolean $search_own = true )
Returns the identity's id that matches the passed addresses. |
public
string
|
|
public
string
|
#
getSignature( string $type = 'text', integer $ident = null )
Returns the full signature based on the current settings for the signature itself, the dashes and the position. |
public
array
|
#
getAllSignatures( string $type = 'text' )
Returns an array with the signatures from all identities |
public
|
|
public
|
|
public
array
|
#
getAllSentmailFolders( )
Returns an array with the sent-mail folder names from all the identities. |
public
boolean
|
#
saveSentmail( integer $ident = null )
Returns true if the mail should be saved and the user is allowed to. |