changeset 28632:239d5d98c1bd

(mail-do-fcc): Prevent inserting a newline at the start of an existing but empty folder.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 18 Apr 2000 13:04:46 +0000
parents 5e9674136340
children 83d4e44ed68e
files lisp/mail/sendmail.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Tue Apr 18 13:04:00 2000 +0000
+++ b/lisp/mail/sendmail.el	Tue Apr 18 13:04:46 2000 +0000
@@ -1079,6 +1079,10 @@
 	  ;; unless we've already taken care of it.
 	  (unless dont-write-the-file
 	    (if (and (file-exists-p (car fcc-list))
+		     ;; Check that the file isn't empty.  We don't
+		     ;; want to insert a newline at the start of an
+		     ;; empty file.
+		     (not (zerop (nth 7 (file-attributes (car fcc-list)))))
 		     (mail-file-babyl-p (car fcc-list)))
 		;; If the file is a Babyl file,
 		;; convert the message to Babyl format.