Make code slightly faster.
[gnus] / lisp / nndraft.el
index 313675c..98c14d4 100644 (file)
@@ -222,6 +222,11 @@ are generated if and only if they are also in `message-draft-headers'.")
 (deffoo nndraft-request-expire-articles (articles group &optional server force)
   (nndraft-possibly-change-group group)
   (let* ((nnmh-allow-delete-final t)
+        (nnmail-expiry-target
+         (or (gnus-group-find-parameter
+              (gnus-group-prefixed-name group (list 'nndraft server))
+              'expiry-target t)
+             nnmail-expiry-target))
         (res (nnoo-parent-function 'nndraft
                                    'nnmh-request-expire-articles
                                    (list articles group server force)))