Fix bug: rmail was trying to read new mail even when called with a
authorChris Hanson <org/chris-hanson/cph>
Sat, 23 Mar 1996 06:26:03 +0000 (06:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 23 Mar 1996 06:26:03 +0000 (06:26 +0000)
filename as argument, in contradiction of the documentation string.

v7/src/edwin/rmail.scm

index 90f8e14cd6ece9e3bb59a8d5ddea181c91f9f8e8..ddfdbf16aeed162437324b28a3d6e4f0a86946cf 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: rmail.scm,v 1.48 1996/03/01 07:31:20 cph Exp $
+;;;    $Id: rmail.scm,v 1.49 1996/03/23 06:26:03 cph Exp $
 ;;;
 ;;;    Copyright (c) 1991-96 Massachusetts Institute of Technology
 ;;;
@@ -335,7 +335,7 @@ but does not copy any new mail into the file."
                      (if (msg-memo? memo)
                          (msg-memo/number memo)
                          0))))
-    ((ref-command rmail-get-new-mail) false)))
+    (if (not filename) ((ref-command rmail-get-new-mail) #f))))
 
 (define-command rmail-input
   "Run RMAIL on file FILENAME."