try to adapt async_vacation to use oldImapServer Object

This commit is contained in:
Klaus Leithoff 2014-01-21 14:58:57 +00:00
parent 77fd70275c
commit 9356586af4

View File

@ -27,11 +27,10 @@ class mail_bosieve
// unset the fm_preferences session object, to force the reload/rebuild
$_restoreSession = false; // as in async, each call may be for a different user
$bopreferences = CreateObject('felamimail.bopreferences',$_restoreSession);
$mailPreferences = $bopreferences->getPreferences();
$icServer = $mailPreferences->getIncomingServer(0);
//$_profile_id=999999;
//$icServer = emailadmin_account::read($_profile_id)->imapServer();
//$bopreferences = CreateObject('felamimail.bopreferences',$_restoreSession);
//$mailPreferences = $bopreferences->getPreferences();
//$icServer = $mailPreferences->getIncomingServer(0);
$icServer = emailadmin_account::search((isset($_vacation['account_id'])&&!empty($_vacation['account_id'])?$_vacation['account_id']:$GLOBALS['egw_info']['user']['account_id']),false,null,0,1)->oldImapServer();
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.'->LoginName:'.$icServer->loginName);
//error_log(__METHOD__.__LINE__.array2string($_vacation));