Reply to original recipient functionality should be consistent, even if original...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 17 Jun 2013 20:19:59 +0000 (20:19 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 17 Jun 2013 20:19:59 +0000 (20:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14376 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 0519be7..89dc560 100644 (file)
@@ -1023,25 +1023,11 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
                     }
 
                     // if the reply was addressed back to ourselves,
-                    // we will send it to the TO of the previous message,
-                    // first making sure that that address wasn't also
-                    // one of our identities
+                    // we will send it to the TO of the previous message
                     //
                     if (!empty($orig_to)) {
 
-                        foreach($idents as $id) {
-                            if (!empty($id['email_address'])
-                             && strpos($orig_to, $id['email_address']) !== FALSE) {
-                                $orig_to = '';
-                                break;
-                            }
-                        }
-
-                        // if $orig_to still not empty, we can use it
-                        //
-                        if (!empty($orig_to)) {
-                            $send_to = $orig_to;
-                        }
+                        $send_to = $orig_to;
                     }
 
                 }