Index: /trunk/roundcubemail/program/steps/mail/sendmail.inc
===================================================================
--- /trunk/roundcubemail/program/steps/mail/sendmail.inc	(revision 763)
+++ /trunk/roundcubemail/program/steps/mail/sendmail.inc	(revision 764)
@@ -221,14 +221,6 @@
 
 // append generic footer to all messages
-if (!empty($CONFIG['generic_message_footer']))
-  {
-  $file = realpath($CONFIG['generic_message_footer']);
-  if($fp = fopen($file, 'r'))
-    {
-    $content = fread($fp, filesize($file));
-    fclose($fp);
-    $message_body .= "\r\n" . rcube_charset_convert($content, 'UTF-8', $message_charset);
-    }
-  }
+if (!$savedraft && !empty($CONFIG['generic_message_footer']) && ($footer = file_get_contents(realpath($CONFIG['generic_message_footer']))))
+  $message_body .= "\r\n" . rcube_charset_convert($footer, 'UTF-8', $message_charset);
 
 // try to autodetect operating system and use the correct line endings
