Browse Source

Reply to original recipient functionality should be consistent, even if original recipient also happens to be one of our identities

pdontthink 12 năm trước cách đây
mục cha
commit
ca810c27ca
1 tập tin đã thay đổi với 2 bổ sung16 xóa
  1. 2 16
      src/compose.php

+ 2 - 16
src/compose.php

@@ -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;
                     }
 
                 }