fix to fetch Vacation part of sieve script when vacation is active (seen when using dovecot)

This commit is contained in:
Klaus Leithoff 2011-12-21 15:25:46 +00:00
parent 926e3bfca7
commit cc3f3c92a9

View File

@ -761,6 +761,8 @@ class uifelamimail
$this->t->set_var('reloadView',$refreshURL);
// display a warning if vacation notice is active
if(($imapServer instanceof defaultimap) && $imapServer->enableSieve) {
$scriptName = (!empty($GLOBALS['egw_info']['user']['preferences']['felamimail']['sieveScriptName'])) ? $GLOBALS['egw_info']['user']['preferences']['felamimail']['sieveScriptName'] : 'felamimail';
$imapServer->getScript($scriptName);
$imapServer->retrieveRules($imapServer->scriptName);
$vacation = $imapServer->getVacation($imapServer->scriptName);
//_debug_array($vacation);