diff options
author | Richard M. Stallman <[email protected]> | 1996-06-11 01:33:41 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1996-06-11 01:33:41 +0000 |
commit | e00c3a0c27cd9150a0ed6c3606864565e49d2884 (patch) | |
tree | 0909d62fbd13dcbb82b29789d7e47a407aff40d6 /lisp/mail | |
parent | 7bfff21e3e813d89561ed47eb4360e9a27c2c439 (diff) |
(rmail-retry-failure): Nicer error message
if can't find mail-unsent-separator.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/rmail.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index c2b994980a..f8e2f7cb17 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2454,9 +2454,10 @@ specifying headers which should not be copied into the new message." (let ((codestring (buffer-substring (progn (beginning-of-line) (point)) (progn (end-of-line) (point))))) - (re-search-forward mail-unsent-separator) - (search-forward codestring) - (or (search-forward "\n\n" nil t) + (or (re-search-forward mail-unsent-separator nil t) + (error "Cannot find beginning of header in failed message")) + (or (and (search-forward codestring nil t) + (search-forward "\n\n" nil t)) (error "Cannot find end of Mime data in failed message")) (setq bounce-start (point)) (save-excursion |