diff options
| author | Richard M. Stallman | 1992-10-09 02:05:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-09 02:05:10 +0000 |
| commit | f2da0c6813e7ff352c022068981b6c8bfe879c88 (patch) | |
| tree | 564e868460a4a7488ce748ddc8d4cb57a4ead77e | |
| parent | d80788d86d0249afb1c8598ffd458342a76616cb (diff) | |
| download | emacs-f2da0c6813e7ff352c022068981b6c8bfe879c88.tar.gz emacs-f2da0c6813e7ff352c022068981b6c8bfe879c88.zip | |
(mail-unsent-separator): Allow "original message" as alternative.
Allow extra dashes and spaces.
(rmail-retry-failure): Ignore case while searching for unsent sep.
| -rw-r--r-- | lisp/mail/rmail.el | 9 |
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, |