Changeset 1782 in subversion


Ignore:
Timestamp:
Sep 13, 2008 9:26:34 AM (5 years ago)
Author:
alec
Message:

#1485337: fill recipient on reply to address of yourself (if there's only one address found in message)

File:
1 edited

Legend:

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

    r1751 r1782  
    210210      $to_addresses = $IMAP->decode_address_list($fvalue); 
    211211      $fvalue = ''; 
     212 
    212213      foreach ($to_addresses as $addr_part) 
    213214      { 
    214         if (!empty($addr_part['mailto']) && !in_array($addr_part['mailto'], $sa_recipients) && (!$MESSAGE->compose_from || !in_array($addr_part['mailto'], $MESSAGE->compose_from))) 
     215        if (!empty($addr_part['mailto']) 
     216            && !in_array($addr_part['mailto'], $sa_recipients) 
     217            && (!$MESSAGE->compose_from 
     218                || !in_array($addr_part['mailto'], $MESSAGE->compose_from) 
     219                || count($to_addresses)==1)) // allow reply to yourself 
    215220        { 
    216221          $fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string']; 
Note: See TracChangeset for help on using the changeset viewer.