]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-do-fcc): Prevent inserting a newline
authorGerd Moellmann <gerd@gnu.org>
Tue, 18 Apr 2000 13:04:46 +0000 (13:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 18 Apr 2000 13:04:46 +0000 (13:04 +0000)
at the start of an existing but empty folder.

lisp/mail/sendmail.el

index 9922fdae2f81209c4acedfd1df0ea7b393db7a32..d5c0cb576ee03b7693fc152d7e98dbe7a49ee6dd 100644 (file)
@@ -1079,6 +1079,10 @@ See also the function `select-message-coding-system'.")
          ;; 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.