Browse Source

Remove ancient code that tried to set the default identity to match the FROM header of the message being replied to. This makes no sense and is superceded by the identities match that occurs immediately below.

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

+ 0 - 5
src/compose.php

@@ -884,11 +884,6 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
         if (count($idents) > 1) {
         if (count($idents) > 1) {
             foreach($idents as $nr=>$data) {
             foreach($idents as $nr=>$data) {
                 $enc_from_name = '"'.$data['full_name'].'" <'. $data['email_address'].'>';
                 $enc_from_name = '"'.$data['full_name'].'" <'. $data['email_address'].'>';
-                if(strtolower($enc_from_name) == strtolower($orig_from)) {
-                    $identity = $nr;
-                    // don't stop!  need to build $identities array for idents match below
-                    //break;
-                }
                 $identities[] = $enc_from_name;
                 $identities[] = $enc_from_name;
             }
             }