setting ident_realname/email for mail accounts&identities where mail-server is managed by EGroupware

This commit is contained in:
Ralf Becker 2014-01-18 14:00:19 +00:00
parent c93e4fdc0e
commit 6b926d5267

View File

@ -64,7 +64,7 @@ class mail_compose
var $composeID; var $composeID;
var $sessionData; var $sessionData;
function mail_compose() function __construct()
{ {
if (!isset($GLOBALS['egw_info']['flags']['js_link_registry'])) if (!isset($GLOBALS['egw_info']['flags']['js_link_registry']))
{ {
@ -984,6 +984,7 @@ class mail_compose
$sel_options['mailaccount'][$singleIdentity['acc_id']] = $id_prepend.$iS; $sel_options['mailaccount'][$singleIdentity['acc_id']] = $id_prepend.$iS;
} }
} }
$sel_options['mailaccount'] = iterator_to_array(emailadmin_account::search());
//error_log(__METHOD__.__LINE__.' Identities regarded/marked as default:'.array2string($defaultIds). ' MailProfileActive:'.$this->mail_bo->profileID); //error_log(__METHOD__.__LINE__.' Identities regarded/marked as default:'.array2string($defaultIds). ' MailProfileActive:'.$this->mail_bo->profileID);
// if there are 2 defaultIDs, its most likely, that the user choose to set // if there are 2 defaultIDs, its most likely, that the user choose to set
// the one not being the activeServerProfile to be his default Identity // the one not being the activeServerProfile to be his default Identity