diff options
| author | Mark Lillibridge | 2011-11-22 23:49:53 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-11-22 23:49:53 -0800 |
| commit | d2992a38a4186067221287314d8dd6b2d4f31d7e (patch) | |
| tree | 45c5b2d8b8dc0116502244a00143122c6cc88db0 | |
| parent | 8038d2d2900195ee31941abe6d3b5df2ed7f75d9 (diff) | |
| download | emacs-d2992a38a4186067221287314d8dd6b2d4f31d7e.tar.gz emacs-d2992a38a4186067221287314d8dd6b2d4f31d7e.zip | |
* lisp/mail/unrmail.el (unrmail): Always add blank line. (tiny change)
Fixes: debbugs:7743
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/mail/unrmail.el | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a154b65890..bcb3dc56c80 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-11-23 Mark Lillibridge <mark.lillibridge@hp.com> (tiny change) | ||
| 2 | |||
| 3 | * mail/unrmail.el (unrmail): Always add blank line. (Bug#7743) | ||
| 4 | |||
| 1 | 2011-11-23 Glenn Morris <rgm@gnu.org> | 5 | 2011-11-23 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * mail/rmail.el (rmail-forward): | 7 | * mail/rmail.el (rmail-forward): |
diff --git a/lisp/mail/unrmail.el b/lisp/mail/unrmail.el index 9ed2e90b456..652693209e8 100644 --- a/lisp/mail/unrmail.el +++ b/lisp/mail/unrmail.el | |||
| @@ -231,10 +231,9 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'." | |||
| 231 | (while (search-forward "\nFrom " nil t) | 231 | (while (search-forward "\nFrom " nil t) |
| 232 | (forward-char -5) | 232 | (forward-char -5) |
| 233 | (insert ?>))) | 233 | (insert ?>))) |
| 234 | ;; Make sure the message ends with two newlines | ||
| 235 | (goto-char (point-max)) | 234 | (goto-char (point-max)) |
| 236 | (unless (looking-back "\n\n") | 235 | ;; Add terminator blank line to message. |
| 237 | (insert "\n")) | 236 | (insert "\n") |
| 238 | ;; Write it to the output file, suitably encoded. | 237 | ;; Write it to the output file, suitably encoded. |
| 239 | (let ((coding-system-for-write coding)) | 238 | (let ((coding-system-for-write coding)) |
| 240 | (write-region (point-min) (point-max) to-file t | 239 | (write-region (point-min) (point-max) to-file t |