]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-retry-failure): Nicer error message
authorRichard M. Stallman <rms@gnu.org>
Tue, 11 Jun 1996 01:33:41 +0000 (01:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 11 Jun 1996 01:33:41 +0000 (01:33 +0000)
if can't find mail-unsent-separator.

lisp/mail/rmail.el

index c2b994980a688e06869f1bea42bc2b46bb326481..f8e2f7cb176f1a0c82c04d30c4cb65ddc18e5cf0 100644 (file)
@@ -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