Ignore:
Timestamp:
Aug 30, 2007 3:50:01 AM (6 years ago)
Author:
thomasb
Message:

Don't add message footer when saving as draft

File:
1 edited

Legend:

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

    r613 r764  
    221221 
    222222// append generic footer to all messages 
    223 if (!empty($CONFIG['generic_message_footer'])) 
    224   { 
    225   $file = realpath($CONFIG['generic_message_footer']); 
    226   if($fp = fopen($file, 'r')) 
    227     { 
    228     $content = fread($fp, filesize($file)); 
    229     fclose($fp); 
    230     $message_body .= "\r\n" . rcube_charset_convert($content, 'UTF-8', $message_charset); 
    231     } 
    232   } 
     223if (!$savedraft && !empty($CONFIG['generic_message_footer']) && ($footer = file_get_contents(realpath($CONFIG['generic_message_footer'])))) 
     224  $message_body .= "\r\n" . rcube_charset_convert($footer, 'UTF-8', $message_charset); 
    233225 
    234226// try to autodetect operating system and use the correct line endings 
Note: See TracChangeset for help on using the changeset viewer.