use new option to fetch the activeMailProfile by ProfileID

This commit is contained in:
Klaus Leithoff 2011-07-18 13:41:13 +00:00
parent e9eb6154ff
commit 944a31e610
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);

View File

@ -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)