Skip to content

Commit

Permalink
Bug #9927: Don't treat subject as an address containing header
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 19, 2011
1 parent 3f61382 commit 84fae3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imp/compose.php
Expand Up @@ -629,12 +629,16 @@
$header['bcc'] = Horde_Mime_Address::addrArray2String($identity->getBccAddresses());
}

foreach (array('to', 'cc', 'bcc', 'subject') as $val) {
foreach (array('to', 'cc', 'bcc') as $val) {
if (!isset($header[$val])) {
$header[$val] = $imp_ui->getAddressList($vars->$val);
}
}

if (!isset($header['subject'])) {
$header['subject'] = $vars->subject;
}

/* If PGP encryption is set by default, and we have a recipient list on first
* load, make sure we have public keys for all recipients. */
$encrypt_options = $prefs->isLocked('default_encrypt')
Expand Down

0 comments on commit 84fae3c

Please sign in to comment.