]> git.eshelyaron.com Git - emacs.git/commitdiff
(unforward-rmail-message): Handle any kind of forwarding delimiters.
authorRichard M. Stallman <rms@gnu.org>
Sat, 24 Feb 1996 00:36:29 +0000 (00:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 24 Feb 1996 00:36:29 +0000 (00:36 +0000)
lisp/mail/undigest.el

index 814198f3baf08d04881ee088c1a7c6589b97829f..d4975b1daadb454d35fabd7106cc654ed3f6a55b 100644 (file)
@@ -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)