Only delete articles immediately if the target is 'delete.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 21 Sep 2010 16:48:21 +0000 (18:48 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 21 Sep 2010 16:48:21 +0000 (18:48 +0200)
lisp/ChangeLog
lisp/nnimap.el

index 7e2dfa6..84baaff 100644 (file)
@@ -2,6 +2,8 @@
 
        * nnimap.el (nnimap-request-group): When we have zero articles, return
        the right data to Gnus.
+       (nnimap-request-expire-articles): Only delete articles immediately if
+       the target is 'delete.
 
        * gnus-sum.el (gnus-summary-move-article): When respooling to the same
        method, this would bug out.
index 7822f50..82c9976 100644 (file)
@@ -490,7 +490,8 @@ textual parts.")
   (cond
    ((not (nnimap-possibly-change-group group server))
     articles)
-   (force
+   ((and force
+        (eq nnmail-expiry-target 'delete))
     (unless (nnimap-delete-article articles)
       (message "Article marked for deletion, but not expunged."))
     nil)