mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add "Org | Name Email" as email identity format into identLabel preference options
This commit is contained in:
parent
684d0846dc
commit
ebf4ca8752
@ -469,7 +469,8 @@ class mail_hooks
|
|||||||
1 => lang('Real name'),
|
1 => lang('Real name'),
|
||||||
2 => lang('Email'),
|
2 => lang('Email'),
|
||||||
4 => lang('Organization'),
|
4 => lang('Organization'),
|
||||||
8 => lang('Ident name')
|
8 => lang('Ident name'),
|
||||||
|
16 => lang('Organization | Real name Email')
|
||||||
),
|
),
|
||||||
'default' => 7
|
'default' => 7
|
||||||
),
|
),
|
||||||
|
@ -46,6 +46,11 @@ class mail_tree
|
|||||||
*/
|
*/
|
||||||
const IDENT_NAME_IDENTITY= 8;
|
const IDENT_NAME_IDENTITY= 8;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* bit flag: org | name email
|
||||||
|
*/
|
||||||
|
const ORG_NAME_EMAIL = 16;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Icons used for nodes different states
|
* Icons used for nodes different states
|
||||||
*
|
*
|
||||||
@ -560,6 +565,11 @@ class mail_tree
|
|||||||
$name[] = $_account['ident_org'];
|
$name[] = $_account['ident_org'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($identLabel & self::ORG_NAME_EMAIL)
|
||||||
|
{
|
||||||
|
$name[] = $_account['ident_org']." | ".$_account['ident_realname'].' '.' <'.$_account['ident_email'].'>';
|
||||||
|
}
|
||||||
|
|
||||||
if ($identLabel & self::IDENT_EMAIL || empty($name))
|
if ($identLabel & self::IDENT_EMAIL || empty($name))
|
||||||
{
|
{
|
||||||
if (strpos($_account['ident_email'], '@') !== false || trim($_account['ident_email']) !='')
|
if (strpos($_account['ident_email'], '@') !== false || trim($_account['ident_email']) !='')
|
||||||
|
Loading…
Reference in New Issue
Block a user