From cd4c3ffbbcab9f594eee7caaf5fe5baf25059b33 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 12 Jun 2017 13:33:56 +0200 Subject: [PATCH] * Mail: skip identities from SMTP only accounts in compose --- mail/inc/class.mail_compose.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index f3f3325f25..6d396dc922 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -1199,6 +1199,9 @@ class mail_compose $sel_options['mailaccount'] = $identities = array(); foreach(Mail\Account::search(true,false) as $acc_id => $account) { + // do NOT add SMTP only accounts as identities + if (!$account->is_imap(false)) continue; + foreach($account->identities($acc_id) as $ident_id => $identity) { $sel_options['mailaccount'][$acc_id.':'.$ident_id] = $identity;