From 345eec290b223e27bafb41ac9e6b676c7f149a68 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Wed, 6 Aug 2014 00:33:37 +0000 Subject: [PATCH] * 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/gnus/ChangeLog | 6 ++++++ lisp/gnus/gnus-sum.el | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 05309187548..832950772d2 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,9 @@ +2014-08-05 Eric Abrahamsen + + * 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 * gnus-msg.el (gnus-inews-insert-gcc): Allow `gcc-self' to be a list of diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index c0e099ba3ca..4f061cd9f32 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -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"))))) -- 2.39.5