* 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 622b927764
commit c1c7ba1f04

View File

@ -1180,6 +1180,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;