Changeset 1686 in subversion


Ignore:
Timestamp:
Aug 28, 2008 3:40:35 AM (5 years ago)
Author:
alec
Message:
  • Write to log also sent MDN confirmation messages
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1683 r1686  
    66- Added options to use syslog instead of log file (#1484850) 
    77- Added Logging & Debugging section in Installer 
     8- Write to smtp log also sent MDN confirmations 
    89 
    9102008/08/26 (alec) 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1676 r1686  
    10771077  $msg_body = $message->get(); 
    10781078  $headers = $message->headers(); 
    1079    
     1079 
    10801080  // send thru SMTP server using custom SMTP library 
    10811081  if ($CONFIG['smtp_server']) 
     
    11231123    } 
    11241124   
    1125   if ($sent)  // remove MDN headers after sending 
     1125  if ($sent) 
     1126  { 
     1127    // remove MDN headers after sending 
    11261128    unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']); 
     1129     
     1130    if ($CONFIG['smtp_log']) 
     1131      write_log('sendmail', sprintf("[%s] User: %d on %s; Message for %s; %s", 
     1132                date("d-M-Y H:i:s O", mktime()), 
     1133                $_SESSION['user_id'], 
     1134                $_SERVER['REMOTE_ADDR'], 
     1135                $mailto, 
     1136                !empty($smtp_response) ? join('; ', $smtp_response) : '')); 
     1137  } 
    11271138   
    11281139  $message->_headers = array(); 
  • trunk/roundcubemail/program/steps/mail/sendmail.inc

    r1683 r1686  
    419419else 
    420420  { 
    421   if ($CONFIG['smtp_log']) 
    422     { 
    423     write_log('sendmail', sprintf( 
    424       "[%s] User: %d on %s; Message for %s; %s\n", 
    425       date("d-M-Y H:i:s O", mktime()), 
    426       $_SESSION['user_id'], 
    427       $_SERVER['REMOTE_ADDR'], 
    428       $mailto, 
    429       !empty($smtp_response) ? join('; ', $smtp_response) : '')); 
    430     } 
    431  
    432421  rcmail_compose_cleanup(); 
    433422 
Note: See TracChangeset for help on using the changeset viewer.