]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-sum.el (gnus-summary-expire-articles): Functions registered to
authorEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 6 Aug 2014 00:33:37 +0000 (00:33 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 6 Aug 2014 00:33:37 +0000 (00:33 +0000)
the gnus-summary-article-expire-hook should be told where the function
is going. In particular, the Gnus registry might want to know.

lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index 0530918754877beb6a5644b0cc577420ea27887f..832950772d23972bbd63310c4d6e5995ac4244e7 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-07-31  Tassilo Horn  <tsdh@gnu.org>
 
        * gnus-msg.el (gnus-inews-insert-gcc): Allow `gcc-self' to be a list of
index c0e099ba3ca13ddbff9033171bf29b255accc0c4..4f061cd9f329bda3862e11eb4c207f7d3f60d605 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")))))