* Mail: skip identities from SMTP only accounts in compose

This commit is contained in:
Ralf Becker 2017-06-12 13:33:56 +02:00
parent d3dbe6e31e
commit cd4c3ffbbc

View File

@ -1199,6 +1199,9 @@ class mail_compose
$sel_options['mailaccount'] = $identities = array(); $sel_options['mailaccount'] = $identities = array();
foreach(Mail\Account::search(true,false) as $acc_id => $account) 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) foreach($account->identities($acc_id) as $ident_id => $identity)
{ {
$sel_options['mailaccount'][$acc_id.':'.$ident_id] = $identity; $sel_options['mailaccount'][$acc_id.':'.$ident_id] = $identity;