diff options
| author | Markus Rost | 2004-01-21 12:36:18 +0000 |
|---|---|---|
| committer | Markus Rost | 2004-01-21 12:36:18 +0000 |
| commit | f78d258e7ae19cee13bd5173afe737cddbe96b18 (patch) | |
| tree | c14f1672e0e1cd8677b87532de519dfeba8792d2 | |
| parent | 2f7195cd8152ff178e463c0953c7d57da7b9abf1 (diff) | |
| download | emacs-f78d258e7ae19cee13bd5173afe737cddbe96b18.tar.gz emacs-f78d258e7ae19cee13bd5173afe737cddbe96b18.zip | |
(rmail-convert-to-babyl-format): Avoid deleting trailing white space
and ensure a final newline.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ae7ac293d4..745c62829b9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2004-01-21 Markus Rost <rost@mathematik.uni-bielefeld.de> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-convert-to-babyl-format): Avoid deleting | ||
| 4 | trailing white space and ensure a final newline. | ||
| 5 | |||
| 6 | * mail/rmail-spam-filter.el (rmail-use-spam-filter): Add autoload | ||
| 7 | cookie. | ||
| 8 | |||
| 1 | 2004-01-21 Benjamin Rutt <brutt@bloomington.in.us> | 9 | 2004-01-21 Benjamin Rutt <brutt@bloomington.in.us> |
| 2 | 10 | ||
| 3 | * vc.el (vc-annotate-mode): Inherit from fundamental-mode and | 11 | * vc.el (vc-annotate-mode): Inherit from fundamental-mode and |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index f8abc2a910d..462919d36d4 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1890,7 +1890,13 @@ It returns t if it got any new messages." | |||
| 1890 | (when | 1890 | (when |
| 1891 | (condition-case nil | 1891 | (condition-case nil |
| 1892 | (progn | 1892 | (progn |
| 1893 | (base64-decode-region (1+ header-end) (point)) | 1893 | (base64-decode-region |
| 1894 | (1+ header-end) | ||
| 1895 | (save-excursion | ||
| 1896 | ;; Prevent base64-decode-region | ||
| 1897 | ;; from removing newline characters. | ||
| 1898 | (skip-chars-backward "\n\t ") | ||
| 1899 | (point))) | ||
| 1894 | t) | 1900 | t) |
| 1895 | (error nil)) | 1901 | (error nil)) |
| 1896 | (goto-char header-end) | 1902 | (goto-char header-end) |
| @@ -1908,6 +1914,7 @@ It returns t if it got any new messages." | |||
| 1908 | (goto-char (point-min)) | 1914 | (goto-char (point-min)) |
| 1909 | (while (search-forward "\n\^_" nil t); single char | 1915 | (while (search-forward "\n\^_" nil t); single char |
| 1910 | (replace-match "\n^_")))); 2 chars: "^" and "_" | 1916 | (replace-match "\n^_")))); 2 chars: "^" and "_" |
| 1917 | (or (bolp) (newline)) ; in case we lost the final newline. | ||
| 1911 | (insert ?\^_) | 1918 | (insert ?\^_) |
| 1912 | (setq last-coding-system-used nil) | 1919 | (setq last-coding-system-used nil) |
| 1913 | (or rmail-enable-mime | 1920 | (or rmail-enable-mime |