summaryrefslogtreecommitdiff
path: root/lisp/mail/undigest.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-09-25 18:40:24 +0000
committerRichard M. Stallman <rms@gnu.org>1995-09-25 18:40:24 +0000
commita241b67c8d8fba6ac3acf41888072ce69cc737af (patch)
treef9d9352bdeb7d89346c559a53ee5e41e23672c76 /lisp/mail/undigest.el
parentf3b3be5cf87f52d88927e84abbee9fc88609aab3 (diff)
downloademacs-a241b67c8d8fba6ac3acf41888072ce69cc737af.tar.gz
(undigestify-rmail-message): Scan back as far as start
of message, to find end of digest.
Diffstat (limited to 'lisp/mail/undigest.el')
-rw-r--r--lisp/mail/undigest.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/undigest.el b/lisp/mail/undigest.el
index b80a5f4a48b..83ea58b3b63 100644
--- a/lisp/mail/undigest.el
+++ b/lisp/mail/undigest.el
@@ -55,10 +55,12 @@ Leaves original message, deleted, before the undigestified messages."
(point-max))
(let* ((fill-prefix "")
(case-fold-search t)
+ start
(digest-name
(mail-strip-quoted-names
(or (save-restriction
(search-forward "\n\n")
+ (setq start (point))
(narrow-to-region (point-min) (point))
(goto-char (point-max))
(or (mail-fetch-field "Reply-To")
@@ -69,11 +71,10 @@ Leaves original message, deleted, before the undigestified messages."
(save-excursion
(goto-char (point-max))
(skip-chars-backward " \t\n")
- (let ((count 10) found)
+ (let (found)
;; compensate for broken un*x digestifiers. Sigh Sigh.
- (while (and (> count 0) (not found))
+ (while (and (> (point) start) (not found))
(forward-line -1)
- (setq count (1- count))
(if (looking-at (concat "End of.*Digest.*\n"
(regexp-quote "*********") "*"
"\\(\n------*\\)*"))