new method to check if mail account is an imap account: Checks if an imap host, username and NOT deliveryMode="forwardOnly" is set

This commit is contained in:
Ralf Becker 2014-07-08 11:09:31 +00:00
parent 05b2773391
commit 579e0da787

View File

@ -881,7 +881,7 @@ class mail_ui
continue;
}
//error_log(__METHOD__.__LINE__.array2string($accountObj));
if (empty($accountObj->acc_imap_host))
if (!$accountObj->is_imap())
{
// not to be used for IMAP Foldertree, as there is no Imap host
continue;
@ -1136,7 +1136,7 @@ class mail_ui
foreach(emailadmin_account::search($only_current_user=true, $just_name=false) as $acc_id => $accountObj)
{
//error_log(__METHOD__.__LINE__.array2string($accountObj));
if (empty($accountObj->acc_imap_host))
if (!$accountObj->is_imap())
{
// not to be used for IMAP Foldertree, as there is no Imap host
continue;