mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-02 11:21:42 +00:00
(mail-do-fcc): Prevent inserting a newline
at the start of an existing but empty folder.
This commit is contained in:
parent
9909b39584
commit
faeb73d448
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user