allow reply to yourself only in To field

release-0.6
thomascube 16 years ago
parent f1cc7fc09c
commit d859b0ca1f

@ -194,7 +194,7 @@ function rcmail_compose_headers($attrib)
&& !in_array($addr_part['mailto'], $sa_recipients) && !in_array($addr_part['mailto'], $sa_recipients)
&& (!$MESSAGE->compose_from && (!$MESSAGE->compose_from
|| !in_array_nocase($addr_part['mailto'], $MESSAGE->compose_from) || !in_array_nocase($addr_part['mailto'], $MESSAGE->compose_from)
|| count($to_addresses)==1)) // allow reply to yourself || (count($to_addresses)==1 && $header=='to'))) // allow reply to yourself
{ {
$fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string']; $fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string'];
$sa_recipients[] = $addr_part['mailto']; $sa_recipients[] = $addr_part['mailto'];

Loading…
Cancel
Save