diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-02-24 00:36:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-02-24 00:36:29 +0000 |
commit | 925a04d77d959f59420fac0b4572b864df875c04 (patch) | |
tree | 8317a4c05a59d33cd940b8f4421878088a61356c /lisp/mail | |
parent | 2552971881f11242e3f1a8daf9124f663aface3f (diff) | |
download | emacs-925a04d77d959f59420fac0b4572b864df875c04.tar.gz |
(unforward-rmail-message): Handle any kind of forwarding delimiters.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/undigest.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/mail/undigest.el b/lisp/mail/undigest.el index 814198f3baf..d4975b1daad 100644 --- a/lisp/mail/undigest.el +++ b/lisp/mail/undigest.el @@ -142,10 +142,12 @@ following the containing message." (goto-char (point-min)) (let (beg end (buffer-read-only nil) msg-string who-forwarded-it) (setq who-forwarded-it (mail-fetch-field "From")) - (if (re-search-forward "^-* Start of forwarded message -*$" nil t) - (setq beg (1+ (point))) + (if (re-search-forward "^----" nil t) + nil (error "No forwarded message")) - (if (re-search-forward "^-* End of forwarded message -*$" nil t) + (forward-line 1) + (setq beg (point)) + (if (re-search-forward "^----" nil t) (setq end (match-beginning 0)) (error "No terminator for forwarded message")) (widen) |