diff options
| author | Richard M. Stallman | 1996-06-11 01:33:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-11 01:33:41 +0000 |
| commit | e00c3a0c27cd9150a0ed6c3606864565e49d2884 (patch) | |
| tree | 0909d62fbd13dcbb82b29789d7e47a407aff40d6 | |
| parent | 7bfff21e3e813d89561ed47eb4360e9a27c2c439 (diff) | |
| download | emacs-e00c3a0c27cd9150a0ed6c3606864565e49d2884.tar.gz emacs-e00c3a0c27cd9150a0ed6c3606864565e49d2884.zip | |
(rmail-retry-failure): Nicer error message
if can't find mail-unsent-separator.
| -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 c2b994980a6..f8e2f7cb176 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." | |||
| 2454 | (let ((codestring | 2454 | (let ((codestring |
| 2455 | (buffer-substring (progn (beginning-of-line) (point)) | 2455 | (buffer-substring (progn (beginning-of-line) (point)) |
| 2456 | (progn (end-of-line) (point))))) | 2456 | (progn (end-of-line) (point))))) |
| 2457 | (re-search-forward mail-unsent-separator) | 2457 | (or (re-search-forward mail-unsent-separator nil t) |
| 2458 | (search-forward codestring) | 2458 | (error "Cannot find beginning of header in failed message")) |
| 2459 | (or (search-forward "\n\n" nil t) | 2459 | (or (and (search-forward codestring nil t) |
| 2460 | (search-forward "\n\n" nil t)) | ||
| 2460 | (error "Cannot find end of Mime data in failed message")) | 2461 | (error "Cannot find end of Mime data in failed message")) |
| 2461 | (setq bounce-start (point)) | 2462 | (setq bounce-start (point)) |
| 2462 | (save-excursion | 2463 | (save-excursion |