diff options
| author | Gerd Moellmann | 2000-01-18 21:30:05 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-18 21:30:05 +0000 |
| commit | 51ee83ac34cc23014fc05d6379023d1c1f999954 (patch) | |
| tree | 68c97f5ecdf211d71a155544fa2562a8b4b309fd | |
| parent | c3975772b826c52e5b284b288d1e1c78065c964e (diff) | |
| download | emacs-51ee83ac34cc23014fc05d6379023d1c1f999954.tar.gz emacs-51ee83ac34cc23014fc05d6379023d1c1f999954.zip | |
(rmail-digest-end-regexp): New user option.
(undigestify-rmail-message): Use it.
| -rw-r--r-- | lisp/mail/undigest.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/mail/undigest.el b/lisp/mail/undigest.el index 9ddfccac83e..a85d280022d 100644 --- a/lisp/mail/undigest.el +++ b/lisp/mail/undigest.el | |||
| @@ -30,6 +30,13 @@ | |||
| 30 | 30 | ||
| 31 | (require 'rmail) | 31 | (require 'rmail) |
| 32 | 32 | ||
| 33 | (defcustom rmail-digest-end-regexp (concat "End of.*Digest.*\n" | ||
| 34 | (regexp-quote "*********") "*" | ||
| 35 | "\\(\n------*\\)*") | ||
| 36 | "*Regexp matching the end of a digest message." | ||
| 37 | :group 'rmail | ||
| 38 | :type 'regexp) | ||
| 39 | |||
| 33 | ;;;###autoload | 40 | ;;;###autoload |
| 34 | (defun undigestify-rmail-message () | 41 | (defun undigestify-rmail-message () |
| 35 | "Break up a digest message into its constituent messages. | 42 | "Break up a digest message into its constituent messages. |
| @@ -78,9 +85,7 @@ Leaves original message, deleted, before the undigestified messages." | |||
| 78 | ;; compensate for broken un*x digestifiers. Sigh Sigh. | 85 | ;; compensate for broken un*x digestifiers. Sigh Sigh. |
| 79 | (while (and (> (point) start) (not found)) | 86 | (while (and (> (point) start) (not found)) |
| 80 | (forward-line -1) | 87 | (forward-line -1) |
| 81 | (if (looking-at (concat "End of.*Digest.*\n" | 88 | (if (looking-at rmail-digest-end-regexp) |
| 82 | (regexp-quote "*********") "*" | ||
| 83 | "\\(\n------*\\)*")) | ||
| 84 | (setq found t))) | 89 | (setq found t))) |
| 85 | (if (not found) | 90 | (if (not found) |
| 86 | (error "Message is not a digest--no end line")))) | 91 | (error "Message is not a digest--no end line")))) |