Fix issue where From address was removed from Cc and Bcc fields when editing a draft (#1489319)

Conflicts:

	CHANGELOG
pull/128/head
Aleksander Machniak 11 years ago
parent d499f06613
commit 6632d42717

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix issue where From address was removed from Cc and Bcc fields when editing a draft (#1489319)
- Fix error_reporting directive check (#1489323)
RELEASE 0.9.4

@ -368,7 +368,12 @@ foreach ($parts as $header) {
$mailto = format_email(rcube_idn_to_utf8($addr_part['mailto']));
if (!in_array($mailto, $a_recipients)
&& ($header == 'to' || empty($MESSAGE->compose['from_email']) || $mailto != $MESSAGE->compose['from_email'])
&& (
$header == 'to'
|| $compose_mode != RCUBE_COMPOSE_REPLY
|| empty($MESSAGE->compose['from_email'])
|| $mailto != $MESSAGE->compose['from_email']
)
) {
if ($addr_part['name'] && $addr_part['mailto'] != $addr_part['name'])
$string = format_email_recipient($mailto, $addr_part['name']);

Loading…
Cancel
Save