diff options
| author | Richard M. Stallman | 1995-04-20 02:31:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-20 02:31:16 +0000 |
| commit | 369718f8db84c881817a6368996984e2693c3e1b (patch) | |
| tree | 01ec1833c205dc9a46607507daf3280d1114bdfd | |
| parent | 091d17573d5bb261bf51c987b508ec9ea35e92b8 (diff) | |
| download | emacs-369718f8db84c881817a6368996984e2693c3e1b.tar.gz emacs-369718f8db84c881817a6368996984e2693c3e1b.zip | |
(undigestify-rmail-message): Strip "^- " which is
added by some digest makers to the beginning of lines.
| -rw-r--r-- | lisp/mail/undigest.el | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lisp/mail/undigest.el b/lisp/mail/undigest.el index 78e55553890..b80a5f4a48b 100644 --- a/lisp/mail/undigest.el +++ b/lisp/mail/undigest.el | |||
| @@ -99,9 +99,22 @@ Leaves original message, deleted, before the undigestified messages." | |||
| 99 | (progn (search-forward "\n\n" | 99 | (progn (search-forward "\n\n" |
| 100 | nil 'move) | 100 | nil 'move) |
| 101 | (point)))) | 101 | (point)))) |
| 102 | (if (mail-fetch-field "To") nil | 102 | (if (mail-fetch-field "To") |
| 103 | nil | ||
| 103 | (goto-char (point-min)) | 104 | (goto-char (point-min)) |
| 104 | (insert "To: " digest-name "\n")))))) | 105 | (insert "To: " digest-name "\n"))) |
| 106 | ;; Digestifiers may insert `- ' on lines that start with `-'. | ||
| 107 | ;; Undo that. | ||
| 108 | (save-excursion | ||
| 109 | (goto-char (point-min)) | ||
| 110 | (if (re-search-forward | ||
| 111 | "\n\n----------------------------*\n*" | ||
| 112 | nil t) | ||
| 113 | (let ((end (point-marker))) | ||
| 114 | (goto-char (point-min)) | ||
| 115 | (while (re-search-forward "^- " end t) | ||
| 116 | (delete-char -2))))) | ||
| 117 | ))) | ||
| 105 | (setq error nil) | 118 | (setq error nil) |
| 106 | (message "Message successfully undigestified") | 119 | (message "Message successfully undigestified") |
| 107 | (let ((n rmail-current-message)) | 120 | (let ((n rmail-current-message)) |