mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
use new option to fetch the activeMailProfile by ProfileID
This commit is contained in:
parent
e9eb6154ff
commit
944a31e610
@ -692,7 +692,7 @@
|
||||
{
|
||||
$bofelamimail = $this->bofelamimail;
|
||||
$_mailObject->PluginDir = EGW_SERVER_ROOT."/phpgwapi/inc/";
|
||||
$activeMailProfile = $this->preferences->getIdentity($this->bofelamimail->profileID);
|
||||
$activeMailProfile = $this->preferences->getIdentity($this->bofelamimail->profileID, true);
|
||||
$_mailObject->IsSMTP();
|
||||
$_mailObject->CharSet = $this->displayCharset;
|
||||
// you need to set the sender, if you work with different identities, since most smtp servers, dont allow
|
||||
|
@ -4190,7 +4190,7 @@ class felamimail_bo
|
||||
//error_log(__METHOD__.__LINE__.' ID:'.$val.' Data:'.array2string($contact));
|
||||
$email = ($contact['email'] ? $contact['email'] : $contact['email_home']);
|
||||
$nfn = ($contact['n_fn'] ? $contact['n_fn'] : $contact['n_given'].' '.$contact['n_family']);
|
||||
$activeMailProfile = $this->mailPreferences->getIdentity($this->profileID);
|
||||
$activeMailProfile = $this->mailPreferences->getIdentity($this->profileID, true);
|
||||
//error_log(__METHOD__.__LINE__.array2string($activeMailProfile));
|
||||
$mailObject->From = $activeMailProfile->emailAddress;
|
||||
//$mailObject->From = $_identity->emailAddress;
|
||||
|
@ -648,7 +648,7 @@ class felamimail_hooks
|
||||
break;
|
||||
}
|
||||
//error_log(__METHOD__.__LINE__.array2string($preferences->identities));
|
||||
$activeIdentity =& $preferences->getIdentity($icServerID);
|
||||
$activeIdentity =& $preferences->getIdentity($icServerID, true);
|
||||
//error_log(__METHOD__.__LINE__.' ActiveIdentity for profileID'.$icServerID.'->'.array2string($activeIdentity));
|
||||
if ($imapServer->_connected != 1) $connectionStatus = $bofelamimail->openConnection($icServerID);
|
||||
$folderObjects = $bofelamimail->getFolderObjects(true, false);
|
||||
|
@ -646,7 +646,7 @@ class uifelamimail
|
||||
//_debug_array($preferences->preferences);
|
||||
//error_log(__METHOD__.__LINE__.' ImapServerId:'.$imapServer->ImapServerId.' Prefs:'.array2string($preferences->preferences));
|
||||
//error_log(__METHOD__.__LINE__.' ImapServerObject:'.array2string($imapServer));
|
||||
if (is_object($preferences)) $activeIdentity =& $preferences->getIdentity(self::$icServerID);
|
||||
if (is_object($preferences)) $activeIdentity =& $preferences->getIdentity(self::$icServerID, true);
|
||||
//_debug_array($activeIdentity);
|
||||
$maxMessages = 50;
|
||||
if (isset($GLOBALS['egw_info']['user']['preferences']['felamimail']['prefMailGridBehavior']) && (int)$GLOBALS['egw_info']['user']['preferences']['felamimail']['prefMailGridBehavior'] <> 0)
|
||||
|
Loading…
Reference in New Issue
Block a user