]> git.eshelyaron.com Git - emacs.git/commitdiff
Expunge nnimap articles immediately in nnselect groups
authorAndrew G Cohen <cohen@andy.bu.edu>
Wed, 16 Oct 2019 05:53:57 +0000 (13:53 +0800)
committerAndrew G Cohen <cohen@andy.bu.edu>
Wed, 16 Oct 2019 05:53:57 +0000 (13:53 +0800)
* lisp/gnus/nnselect.el (nnselect-request-expire-articles): expunge
immediately.

lisp/gnus/nnselect.el

index 7f44f3b8d13c998ade710383727642fb7e96d4d1..7d9c875a07e5917db72541b5faa098a0042be435 100644 (file)
@@ -391,8 +391,9 @@ If this variable is nil, or if the provided function returns nil,
              (error "Couldn't open server for group %s" artgroup))
            (push (mapcar #'(lambda (art)
                              (car (rassq art artids)))
-                         (gnus-request-expire-articles
-                          artlist artgroup force))
+                         (let ((nnimap-expunge 'immediately))
+                           (gnus-request-expire-articles
+                            artlist artgroup force)))
                  not-expired)))
        (sort (delq nil not-expired) '<))
     articles))