aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/rmail.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 95e25add522..de626fb40cf 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1600,7 +1600,9 @@ typically for purposes of moderating a list."
1600 (kill-buffer tembuf)))) 1600 (kill-buffer tembuf))))
1601 1601
1602(defvar mail-unsent-separator 1602(defvar mail-unsent-separator
1603 "^ *----- Unsent message follows ----- *$\\|^ *--- Returned message --- *$") 1603 (concat "^ *---+ +Unsent message follows +---+ *$\\|"
1604 "^ *---+ +Returned message +---+ *$\\|"
1605 "^ *---+ +Original message +---+ *$"))
1604 1606
1605(defun rmail-retry-failure () 1607(defun rmail-retry-failure ()
1606 "Edit a mail message which is based on the contents of the current message. 1608 "Edit a mail message which is based on the contents of the current message.
@@ -1612,8 +1614,9 @@ the body of the original message; otherwise copy the current message."
1612 (save-excursion 1614 (save-excursion
1613 ;; Narrow down to just the quoted original message 1615 ;; Narrow down to just the quoted original message
1614 (rmail-beginning-of-message) 1616 (rmail-beginning-of-message)
1615 (or (re-search-forward mail-unsent-separator nil t) 1617 (let ((case-fold-search t))
1616 (error "Cannot parse this as a failure message")) 1618 (or (re-search-forward mail-unsent-separator nil t)
1619 (error "Cannot parse this as a failure message")))
1617 (save-restriction 1620 (save-restriction
1618 (narrow-to-region (point) (point-max)) 1621 (narrow-to-region (point) (point-max))
1619 ;; Now mail-fetch-field will get from headers of the original message, 1622 ;; Now mail-fetch-field will get from headers of the original message,