mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
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;
|
||||
}
|
||||
//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;
|
||||
|
Loading…
Reference in New Issue
Block a user