diff options
| -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)) |