forked from extern/egroupware
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:
parent
05b2773391
commit
579e0da787
@ -881,7 +881,7 @@ class mail_ui
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//error_log(__METHOD__.__LINE__.array2string($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
|
// not to be used for IMAP Foldertree, as there is no Imap host
|
||||||
continue;
|
continue;
|
||||||
@ -1136,7 +1136,7 @@ class mail_ui
|
|||||||
foreach(emailadmin_account::search($only_current_user=true, $just_name=false) as $acc_id => $accountObj)
|
foreach(emailadmin_account::search($only_current_user=true, $just_name=false) as $acc_id => $accountObj)
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__.__LINE__.array2string($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
|
// not to be used for IMAP Foldertree, as there is no Imap host
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user