Changeset 2010 in subversion


Ignore:
Timestamp:
Oct 25, 2008 12:29:34 PM (5 years ago)
Author:
alec
Message:
  • Don't send disposition notification receipts for messages marked as 'read' (#1485523)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2006 r2010  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42008/10/25 (alec) 
     5---------- 
     6- Don't send disposition notification receipts for messages marked as 'read' (#1485523) 
    37 
    482008/10/24 (alec) 
  • trunk/roundcubemail/program/steps/mail/show.inc

    r2009 r2010  
    7070  $OUTPUT->set_pagetitle($MESSAGE->subject); 
    7171   
    72   // mark message as read 
    73   if (!$MESSAGE->headers->seen) 
    74     $IMAP->set_flag($MESSAGE->uid, 'SEEN'); 
    75  
    7672  // give message uid to the client 
    7773  $OUTPUT->set_env('uid', $MESSAGE->uid); 
     
    8884  // check for unset disposition notification 
    8985  if ($MESSAGE->headers->mdn_to && 
    90       !$MESSAGE->headers->mdn_sent && 
     86      !$MESSAGE->headers->mdn_sent && !$MESSAGE->headers->seen && 
    9187      $IMAP->check_permflag('MDNSENT') && 
    9288      $mbox_name != $CONFIG['drafts_mbox'] && 
     
    141137  if ($last >0) 
    142138    $OUTPUT->set_env('last_uid', $last); 
     139 
     140  // mark message as read 
     141  if (!$MESSAGE->headers->seen) 
     142    $IMAP->set_flag($MESSAGE->uid, 'SEEN'); 
    143143  } 
    144144 
Note: See TracChangeset for help on using the changeset viewer.