From d89d596301fae28f94ce2370b7affe8719361ce3 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Tue, 29 Jul 2014 16:53:09 +0800 Subject: [PATCH] Tell expiry-hook functions where the message is going * lisp/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-sum.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index c0e099b..4f061cd 100644 --- a/lisp/gnus-sum.el +++ b/lisp/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.0.3