Ignore:
Timestamp:
Feb 4, 2008 12:39:06 PM (5 years ago)
Author:
thomasb
Message:

Make sending of read receipts configurable

File:
1 edited

Legend:

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

    r996 r1013  
    66 |                                                                       | 
    77 | This file is part of the RoundCube Webmail client                     | 
    8  | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 | 
     8 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 | 
    99 | Licensed under the GNU GPL                                            | 
    1010 |                                                                       | 
     
    2121 
    2222require_once('Mail/mimeDecode.php'); 
     23require_once('lib/rc_mail_mime.inc'); 
    2324 
    2425$PRINT_MODE = $_action=='print' ? TRUE : FALSE; 
     
    7778  if ($MESSAGE['headers']->mdn_to && !$MESSAGE['headers']->mdn_sent && $IMAP->get_mailbox_name() != $CONFIG['drafts_mbox']) 
    7879  { 
    79     rcube_add_label('mdnrequest'); 
    80     $OUTPUT->set_env('mdn_request', true); 
     80    if (intval($CONFIG['mdn_requests']) === 1) 
     81    { 
     82      if (rcmail_send_mdn($MESSAGE['UID'])) 
     83        $OUTPUT->show_message('receiptsent', 'confirmation'); 
     84    } 
     85    else if (empty($CONFIG['mdn_requests'])) 
     86    { 
     87      rcube_add_label('mdnrequest'); 
     88      $OUTPUT->set_env('mdn_request', true); 
     89    } 
    8190  } 
    8291 
Note: See TracChangeset for help on using the changeset viewer.