summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-12-16 17:01:50 +0000
committerthomascube <thomas@roundcube.net>2008-12-16 17:01:50 +0000
commitd859b0ca1f2bc7f046ff595fab93d17d6f6f42e4 (patch)
treefb56e82045367cd71103c8fb8cd4231dcda5b285 /program/steps
parentf1cc7fc09cc15d01b2594d4a35f9a9ad6b7b5e29 (diff)
allow reply to yourself only in To field
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 6a8086002..9dc207203 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -194,7 +194,7 @@ function rcmail_compose_headers($attrib)
&& !in_array($addr_part['mailto'], $sa_recipients)
&& (!$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'];
$sa_recipients[] = $addr_part['mailto'];