]> code.delx.au - gnu-emacs/blobdiff - lisp/mail/unrmail.el
Checked rmail.texi
[gnu-emacs] / lisp / mail / unrmail.el
index 178b64f119104e072dd66c8faf1cf207aa3f10f2..af16bbf8c73f873e40e6b7d1e4a3a7ed0db34bcd 100644 (file)
@@ -69,7 +69,8 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
       (setq from (point))
       (goto-char (point-max))
       (search-backward "\n\^_" from 'mv)
-      (setq to (point))
+      (if (= from (setq to (point)))
+         (error "The input file contains no messages"))
       (unless (and coding-system
                   (coding-system-p coding-system))
        (setq coding-system