When expiring, tell functions where the articles are going
authorEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 5 Aug 2014 17:27:53 +0000 (19:27 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 5 Aug 2014 17:27:53 +0000 (19:27 +0200)
* gnus-sum.el (gnus-summary-expire-articles): Functions registered to
the gnus-summary-article-expire-hook should be told where the function
is going. In particular, the Gnus registry might want to know.

lisp/ChangeLog
lisp/gnus-sum.el

index 333c3b6..acde130 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-05  Eric Abrahamsen  <eric@ericabrahamsen.net>
+
+       * gnus-sum.el (gnus-summary-expire-articles): Functions registered to
+       the gnus-summary-article-expire-hook should be told where the function
+       is going. In particular, the Gnus registry might want to know.
+
 2014-08-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        Don't mishandle year-9999 dates (Bug#18176).
index c0e099b..4f061cd 100644 (file)
@@ -10449,7 +10449,10 @@ This will be the case if the article has both been mailed and posted."
                                        (gnus-data-header
                                         (assoc article (gnus-data-list nil)))
                                        gnus-newsgroup-name
-                                       nil
+                                       (if (fboundp nnmail-expiry-target)
+                                           (funcall nnmail-expiry-target
+                                                    gnus-newsgroup-name)
+                                         nnmail-expiry-target)
                                        nil)))))))
        (gnus-message 6 "Expiring articles...done")))))