]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-output-to-rmail-file): Avoid multiple output of last undeleted
authorMarkus Rost <rost@math.uni-bielefeld.de>
Tue, 8 Dec 1998 15:34:14 +0000 (15:34 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Tue, 8 Dec 1998 15:34:14 +0000 (15:34 +0000)
message.

lisp/mail/rmailout.el

index a029f5e192ab3c42b4382b804610c715a257c73a..4a7e07ecf850a74343e66bdb3ff692733a54902a 100644 (file)
@@ -178,9 +178,9 @@ starting with the current one.  Deleted messages are skipped and don't count."
          (if redelete (rmail-set-attribute "deleted" t))))
       (setq count (1- count))
       (if rmail-delete-after-output
-         (rmail-delete-forward)
+         (unless (rmail-delete-forward) (setq count 0))
        (if (> count 0)
-           (rmail-next-undeleted-message 1))))))
+           (unless (rmail-next-undeleted-message 1) (setq count 0)))))))
 
 ;;;###autoload
 (defcustom rmail-fields-not-to-output nil