[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail:[14381] trunk/squirrelmail/src/compose.php
From: pdontthink () users ! sourceforge ! net
Date: 2013-06-17 20:31:08
Message-ID: E1Uog52-0001fy-57 () sfs-ml-2 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 14381
http://sourceforge.net/p/squirrelmail/code/14381
Author: pdontthink
Date: 2013-06-17 20:31:07 +0000 (Mon, 17 Jun 2013)
Log Message:
-----------
When replying to original recipient, also reset the identity used to send the mail \
from
Modified Paths:
--------------
trunk/squirrelmail/src/compose.php
Modified: trunk/squirrelmail/src/compose.php
===================================================================
--- trunk/squirrelmail/src/compose.php 2013-06-17 20:31:05 UTC (rev 14380)
+++ trunk/squirrelmail/src/compose.php 2013-06-17 20:31:07 UTC (rev 14381)
@@ -1028,6 +1028,22 @@
if (!empty($orig_to)) {
$send_to = $orig_to;
+
+ // in this case, we also want to reset the FROM
+ // identity as well (it should match the original
+ // *FROM* header instead of TO or CC)
+ //
+ if (count($idents) > 1) {
+ $identity = '';
+ foreach($idents as $i => $id) {
+ if (!empty($id['email_address'])
+ && strpos($orig_from, $id['email_address']) !== \
FALSE) { + $identity = $i;
+ break;
+ }
+ }
+ }
+
}
}
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic