From 66294dadb967cbcea669487fa2a3e5d52302e8d0 Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 16 Dec 2008 17:01:50 +0000 Subject: allow reply to yourself only in To field git-svn-id: https://svn.roundcube.net/trunk@2161 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/compose.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 6a8086002..9dc207203 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/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']; -- cgit v1.2.3