From 2cdf1fd261128976c5769b7959e7b98e5425a3fd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 28 Nov 2020 19:05:18 +0200 Subject: [PATCH] Fix filing messages when 'rmail-output-reset-deleted-flag' is non-nil * lisp/mail/rmailout.el (rmail-output): Fix off-by-one error in deciding when to advance to the next message under non-nil 'rmail-output-reset-deleted-flag'. (Bug#44839) --- lisp/mail/rmailout.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 49531eab91e..cfde335b54f 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el @@ -579,7 +579,7 @@ from a non-Rmail buffer. In this case, COUNT is ignored." (progn (if rmail-delete-after-output (rmail-delete-message)) - (if (> count 0) + (if (>= count 0) (let ((msgnum rmail-current-message)) (rmail-next-message 1) (eq rmail-current-message (1+ msgnum))))) -- 2.39.2