aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-07-08 03:10:10 +0000
committerChong Yidong2009-07-08 03:10:10 +0000
commit88d036078bba84460897932ed8686e30f6aa0d21 (patch)
tree61d0e84cf15973ebf66cf2b94edb05f7794ce87a
parentee047ec4c6f97a20ae8c0eb343e2d359b6992069 (diff)
downloademacs-88d036078bba84460897932ed8686e30f6aa0d21.tar.gz
emacs-88d036078bba84460897932ed8686e30f6aa0d21.zip
* mail/unrmail.el (unrmail): Make sure the message ends with two
newlines (Bug#3769).
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mail/unrmail.el4
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 14c922845cb..5c4c760db9b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-07-08 E. Jay Berkenbilt <ejb@ql.org> (tiny change)
2
3 * mail/unrmail.el (unrmail): Make sure the message ends with two
4 newlines (Bug#3769).
5
12009-07-08 Glenn Morris <rgm@gnu.org> 62009-07-08 Glenn Morris <rgm@gnu.org>
2 7
3 * calendar/calendar.el (calendar-current-date): Rework previous change. 8 * calendar/calendar.el (calendar-current-date): Rework previous change.
diff --git a/lisp/mail/unrmail.el b/lisp/mail/unrmail.el
index cd71ec58571..e06c41b2c2e 100644
--- a/lisp/mail/unrmail.el
+++ b/lisp/mail/unrmail.el
@@ -232,6 +232,10 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
232 (while (search-forward "\nFrom " nil t) 232 (while (search-forward "\nFrom " nil t)
233 (forward-char -5) 233 (forward-char -5)
234 (insert ?>))) 234 (insert ?>)))
235 ;; Make sure the message ends with two newlines
236 (goto-char (point-max))
237 (unless (looking-back "\n\n")
238 (insert "\n"))
235 ;; Write it to the output file, suitably encoded. 239 ;; Write it to the output file, suitably encoded.
236 (let ((coding-system-for-write coding)) 240 (let ((coding-system-for-write coding))
237 (write-region (point-min) (point-max) to-file t 241 (write-region (point-min) (point-max) to-file t