[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f1bf89e 2/2: Make gnus-output-to-rmail appending work better
From: |
Lars Ingebrigtsen |
Subject: |
master f1bf89e 2/2: Make gnus-output-to-rmail appending work better |
Date: |
Tue, 27 Oct 2020 14:29:09 -0400 (EDT) |
branch: master
commit f1bf89e3837199fd9ac37faf52a166b2af9ead0f
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make gnus-output-to-rmail appending work better
* lisp/gnus/gnus-util.el (gnus-output-to-rmail): Ensure we have a
blank line before the next line when using mbox format (bug#39580).
---
lisp/gnus/gnus-util.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el
index 807bd6a..ef811c6 100644
--- a/lisp/gnus/gnus-util.el
+++ b/lisp/gnus/gnus-util.el
@@ -1013,6 +1013,12 @@ FILENAME exists and is Babyl format."
(rmail-swap-buffers-maybe)
(rmail-maybe-set-message-counters))
(widen)
+ (unless babyl
+ (goto-char (point-max))
+ ;; Ensure we have a blank line before the next message.
+ (unless (bolp)
+ (insert "\n"))
+ (insert "\n"))
(narrow-to-region (point-max) (point-max)))
(insert-buffer-substring tmpbuf)
(when msg