squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

identity.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 get_identities ()
 
 save_identities ($identities)
 
 sqfixidentities ( $identities, $id, $action)
 
 empty_identity ($ident)
 

Variables

 if (!defined( 'SM_PATH'))
 

Function Documentation

◆ empty_identity()

empty_identity (   $ident)

Function to test if identity is empty

Parameters
array$identityIdentitiy Array
Returns
boolean

Definition at line 208 of file identity.php.

Referenced by sqfixidentities().

◆ get_identities()

get_identities ( )

Returns an array of all the identities. Array is keyed: full_name, reply_to, email_address, index, signature

Returns
array full_name,reply_to,email_address,index,signature

Definition at line 27 of file identity.php.

References $data_dir, $domain, $username, getPref(), and getSig().

◆ save_identities()

save_identities (   $identities)

Function to save the identities array

Parameters
array$identitiesArray of identities

Definition at line 67 of file identity.php.

References $cnt, $data_dir, $domain, $id, $username, getPref(), removePref(), setPref(), and setSig().

◆ sqfixidentities()

sqfixidentities (   $identities,
  $id,
  $action 
)

Returns an array with a fixed set of identities

Parameters
array$identitiesArray of identities
int$idIdentity to modify
string$actionAction to perform
Returns
array

send action and id information. number of hook arguments differs from 1.4.4 or older and 1.5.0. count($args) can be used to detect modified hook. Older hook does not provide information that can be useful for plugins.

Definition at line 116 of file identity.php.

References $action, $id, do_hook(), and empty_identity().

Variable Documentation

◆ if

if(!defined('SM_PATH'))

Used to simplify includes

Definition at line 16 of file identity.php.