alecpl
2011-08-19 8015bb94319e1d0434275599fdcbc7d0d28c5ea8
- Followup to r5097, fix: match From with full address spec.


1 files modified
7 ■■■■■ changed files
program/steps/mail/compose.inc 7 ●●●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -274,16 +274,17 @@
    // use From header
    if (in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT))) {
      if ($MESSAGE->headers->from == $ident['email_ascii']) {
      if ($MESSAGE->headers->from == $ident['ident']) {
        $from_idx = $idx;
        break;
      }
    }
    else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['email_ascii']) {
    // reply to yourself
    else if ($compose_mode == RCUBE_COMPOSE_REPLY && $MESSAGE->headers->from == $ident['ident']) {
      $from_idx = $idx;
      break;
    }
    // use reply-message recipients
    // use replied message recipients
    else if (in_array($ident['email_ascii'], $a_recipients)) {
      $from_idx = $idx;
    }