Changeset 5098 in subversion


Ignore:
Timestamp:
Aug 19, 2011 6:11:03 AM (22 months ago)
Author:
alec
Message:
  • Followup to r5097, fix: match From with full address spec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r5097 r5098  
    275275    // use From header 
    276276    if (in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT))) { 
    277       if ($MESSAGE->headers->from == $ident['email_ascii']) { 
     277      if ($MESSAGE->headers->from == $ident['ident']) { 
    278278        $from_idx = $idx; 
    279279        break; 
    280280      } 
    281281    } 
    282     else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['email_ascii']) { 
     282    // reply to yourself 
     283    else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['ident']) { 
    283284      $from_idx = $idx; 
    284285      break; 
    285286    } 
    286     // use reply-message recipients 
     287    // use replied message recipients 
    287288    else if (in_array($ident['email_ascii'], $a_recipients)) { 
    288289      $from_idx = $idx; 
Note: See TracChangeset for help on using the changeset viewer.