[Svn] r2161 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Dec 16 18:01:50 CET 2008


Author: thomasb
Date: 2008-12-16 11:01:50 -0600 (Tue, 16 Dec 2008)
New Revision: 2161

Modified:
   trunk/roundcubemail/program/steps/mail/compose.inc
Log:
allow reply to yourself only in To field

Modified: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc	2008-12-16 16:33:31 UTC (rev 2160)
+++ trunk/roundcubemail/program/steps/mail/compose.inc	2008-12-16 17:01:50 UTC (rev 2161)
@@ -194,7 +194,7 @@
             && !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'];

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list