]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-digest-end-regexp): New user option.
authorGerd Moellmann <gerd@gnu.org>
Tue, 18 Jan 2000 21:30:05 +0000 (21:30 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 18 Jan 2000 21:30:05 +0000 (21:30 +0000)
(undigestify-rmail-message): Use it.

lisp/mail/undigest.el

index 9ddfccac83e9554556d1be5752eb925cde1fc158..a85d280022d1852dfb17cf70b3a2401fb8618ce9 100644 (file)
 
 (require 'rmail)
 
+(defcustom rmail-digest-end-regexp (concat "End of.*Digest.*\n"
+                                          (regexp-quote "*********") "*"
+                                          "\\(\n------*\\)*")
+  "*Regexp matching the end of a digest message."
+  :group 'rmail
+  :type 'regexp)
+
 ;;;###autoload
 (defun undigestify-rmail-message ()
   "Break up a digest message into its constituent messages.
@@ -78,9 +85,7 @@ Leaves original message, deleted, before the undigestified messages."
                    ;; compensate for broken un*x digestifiers.  Sigh Sigh.
                    (while (and (> (point) start) (not found))
                      (forward-line -1)
-                     (if (looking-at (concat "End of.*Digest.*\n"
-                                             (regexp-quote "*********") "*"
-                                             "\\(\n------*\\)*"))
+                     (if (looking-at rmail-digest-end-regexp)
                          (setq found t)))
                    (if (not found)
                        (error "Message is not a digest--no end line"))))