diff options
| author | Francesco Potortì | 2003-01-31 14:01:20 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2003-01-31 14:01:20 +0000 |
| commit | a34804da47691d42ccbd99e8b914dadc23ef9bdc (patch) | |
| tree | 96a3bd744796a51e373d4bdf319c49b91193cf2a | |
| parent | e35b383a6075e7e6aaac471efe5830122793c532 (diff) | |
| download | emacs-a34804da47691d42ccbd99e8b914dadc23ef9bdc.tar.gz emacs-a34804da47691d42ccbd99e8b914dadc23ef9bdc.zip | |
(rmail-forward-separator-regex): New custom variable.
(unforward-rmail-message): Use it.
| -rw-r--r-- | lisp/mail/undigest.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/mail/undigest.el b/lisp/mail/undigest.el index d5db68f33c5..d5efa06df71 100644 --- a/lisp/mail/undigest.el +++ b/lisp/mail/undigest.el | |||
| @@ -36,6 +36,14 @@ | |||
| 36 | "\^_\^L\n0, unseen,,\n*** EOOH ***\n" | 36 | "\^_\^L\n0, unseen,,\n*** EOOH ***\n" |
| 37 | "String for separating messages in an rmail file.") | 37 | "String for separating messages in an rmail file.") |
| 38 | 38 | ||
| 39 | (defcustom rmail-forward-separator-regex | ||
| 40 | "^----.*\\([Ff]orwarded\\|[Oo]riginal\\).*[Mm]essage" | ||
| 41 | "*Regexp to match the string that introduces forwarded messages. | ||
| 42 | This is not a header, but a string contained in the body of the message. | ||
| 43 | You may need to customise it for local needs." | ||
| 44 | :type 'regexp | ||
| 45 | :group 'rmail-headers) | ||
| 46 | |||
| 39 | 47 | ||
| 40 | (defconst rmail-digest-methods | 48 | (defconst rmail-digest-methods |
| 41 | '(rmail-digest-parse-mime | 49 | '(rmail-digest-parse-mime |
| @@ -231,8 +239,7 @@ following the containing message." | |||
| 231 | (forwarded-from (mail-fetch-field "From")) | 239 | (forwarded-from (mail-fetch-field "From")) |
| 232 | (forwarded-date (mail-fetch-field "Date")) | 240 | (forwarded-date (mail-fetch-field "Date")) |
| 233 | beg end prefix forward-msg) | 241 | beg end prefix forward-msg) |
| 234 | (cond ((re-search-forward | 242 | (cond ((re-search-forward rmail-forward-separator-regex nil t) |
| 235 | "^----.*\\([Ff]orwarded\\|[Oo]riginal\\).*[Mm]essage" nil t) | ||
| 236 | (forward-line 1) | 243 | (forward-line 1) |
| 237 | (skip-chars-forward "\n") | 244 | (skip-chars-forward "\n") |
| 238 | (setq beg (point)) | 245 | (setq beg (point)) |