remove preference notavailableautofolders and replace it with autocreation of the folder in question when accessed

This commit is contained in:
Klaus Leithoff 2014-04-07 13:06:09 +00:00
parent acd782c287
commit f53dcbe4af
2 changed files with 1 additions and 14 deletions

View File

@ -380,6 +380,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
$this->_wasteID = $this->mail->getTrashFolder(false);
//error_log(__METHOD__.__LINE__.' TrashFolder:'.$this->_wasteID);
$this->_sentID = $this->mail->getSentFolder(false);
$this->mail->getOutboxFolder(true);
//error_log(__METHOD__.__LINE__.' SentFolder:'.$this->_sentID);
//error_log(__METHOD__.__LINE__.' Connection Status for ProfileID:'.self::$profileID.'->'.$this->mail->icServer->_connected);
}

View File

@ -124,10 +124,6 @@ class mail_hooks
$mail_bo->closeConnection();
}
*/
$availableAutoFolders['none'] = lang('none, create all');
foreach(mail_bo::$autoFolders as $aname) {
$availableAutoFolders[$aname] = lang($aname);
}
$mailConfig = config::read('mail');
}
@ -549,16 +545,6 @@ class mail_hooks
'admin' => False,
'forced' => '0',
),*/
'notavailableautofolders' => array(
'type' => 'multiselect',
'label' => 'do not auto create folders',
'help' => 'which folders - in general - should NOT be automatically created, if not existing',
'name' => 'notavailableautofolders',
'values' => $availableAutoFolders,
'xmlrpc' => True,
'admin' => False,
'forced' => 'none',
),
'saveAsOptions' => array(
'type' => 'select',
'label' => 'Save as',