]> git.eshelyaron.com Git - emacs.git/commitdiff
Make nnml save the .overview file when used as an expiry target
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2018 14:53:07 +0000 (16:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2018 14:53:07 +0000 (16:53 +0200)
* lisp/gnus/nnmail.el (nnmail-expiry-target-group): Always pass in
the `last' parameter to the acceptance function so that backends
like nnml save the .overview file (bug#24499).  This may slow down
some use cases.

lisp/gnus/nnmail.el

index 5083fa2487fe12d6f9aef3d638e388b8e5410166..aa909cc9797c8b37b636ccbc18bebaac0b550e34 100644 (file)
@@ -1900,7 +1900,7 @@ If TIME is nil, then return the cutoff time for oldness instead."
     (unless (eq target 'delete)
       (when (or (gnus-request-group target nil nil (gnus-get-info target))
                (gnus-request-create-group target))
-       (let ((group-art (gnus-request-accept-article target nil nil t)))
+       (let ((group-art (gnus-request-accept-article target nil t t)))
          (when (and (consp group-art)
                     (cdr group-art))
            (gnus-group-mark-article-read target (cdr group-art))))))))