summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-24 00:36:29 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-24 00:36:29 +0000
commit925a04d77d959f59420fac0b4572b864df875c04 (patch)
tree8317a4c05a59d33cd940b8f4421878088a61356c /lisp/mail
parent2552971881f11242e3f1a8daf9124f663aface3f (diff)
downloademacs-925a04d77d959f59420fac0b4572b864df875c04.tar.gz
(unforward-rmail-message): Handle any kind of forwarding delimiters.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/undigest.el8
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)