# HG changeset patch # User Glenn Morris # Date 1187147368 0 # Node ID 11dbda5b0d6d0ef9225e860efeb7a49d97ba4c5c # Parent 7597b0681f6269e45e2a5bf31a0550f1fbc90c7e (rmail-digest-parse-rfc1153sloppy): Be even sloppier, for the sake of GNU Mailman. (rmail-digest-rfc1153): Initialize `result' correctly. diff -r 7597b0681f62 -r 11dbda5b0d6d lisp/mail/undigest.el --- a/lisp/mail/undigest.el Wed Aug 15 03:09:04 2007 +0000 +++ b/lisp/mail/undigest.el Wed Aug 15 03:09:28 2007 +0000 @@ -93,7 +93,15 @@ (rmail-digest-rfc1153 "^-\\{55,\\}\n\n" "^\n-\\{27,\\}\n\n" - "^\n-\\{27,\\}\n\nEnd of")) + ;; GNU Mailman knowingly (see comment at line 353 of ToDigest.py in + ;; Mailman source) produces non-conformant rfc 1153 digests, in that + ;; the trailer contains a "digest footer" like this: + ;; _______________________________________________ + ;; + ;; + ;; End of Foo Digest... + ;; ************************************** + "^\nEnd of")) (defun rmail-digest-rfc1153 (prolog-sep message-sep trailer-sep) (goto-char (point-min)) @@ -104,7 +112,7 @@ separator result) (move-marker start (match-beginning 0)) (move-marker end (match-end 0)) - (setq result (cons (copy-marker start) (copy-marker end t))) + (setq result (list (cons (copy-marker start) (copy-marker end t)))) (when (re-search-forward message-sep nil t) ;; Ok, at least one message separator found (setq separator (match-string 0))