* Gnus: expiring unread articles
@ 2005-11-07 2:13 Mark T.B. Carroll
2005-11-08 0:41 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Mark T.B. Carroll @ 2005-11-07 2:13 UTC (permalink / raw)
Hopefully, a simpler question than the last:
I have a group called nnml+mail:mail.spam that my probable spam is
filtered into. I am happy to let articles in it expire without my having
marked them read or suchlike.
How do I achieve this? Can I get the articles marked as expirable
somehow when they are filtered into the group? Or can I use some
combination of options to let unread articles expire for that group?
Thanks.
-- Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus: expiring unread articles
2005-11-07 2:13 Gnus: expiring unread articles Mark T.B. Carroll
@ 2005-11-08 0:41 ` Bastien
2005-11-08 2:26 ` Mark T.B. Carroll
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2005-11-08 0:41 UTC (permalink / raw)
Mark T. B. Carroll writes:
> I have a group called nnml+mail:mail.spam that my probable spam is
> filtered into. I am happy to let articles in it expire without my having
> marked them read or suchlike.
G c to customize your group (or G p if you prefer) and edit the
`auto-expire' and `total-expire' options.
This is what i have for my spam group:
((auto-expire . t)
(total-expire . t)
(spam-contents gnus-group-spam-classification-spam)
(spam-process
((spam spam-use-spamassassin)))
(spam-process-destination)
(spam-marks
(gnus-spam-mark))
(expiry-wait . immediate)
(expiry-target . delete))
(Delete the spamassassin lines if you're not using spamassassin.)
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus: expiring unread articles
2005-11-08 0:41 ` Bastien
@ 2005-11-08 2:26 ` Mark T.B. Carroll
2005-11-08 12:20 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: Mark T.B. Carroll @ 2005-11-08 2:26 UTC (permalink / raw)
Bastien <bastien@xxx.fr> writes:
(snip)
> This is what i have for my spam group:
(snip)
Thanks very much! In trying to understand your code, I have now found
spam.el which is full of interesting reading. I shall steal several
ideas from it. (-:
-- Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus: expiring unread articles
2005-11-08 2:26 ` Mark T.B. Carroll
@ 2005-11-08 12:20 ` Bastien
2005-11-08 17:57 ` Mark T.B. Carroll
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2005-11-08 12:20 UTC (permalink / raw)
Mark T. B. Carroll writes:
> Thanks very much! In trying to understand your code, I have now
> found spam.el which is full of interesting reading. I shall steal
> several ideas from it. (-:
Don't steal! Just use :) And YES, spam.el is very useful.
best,
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gnus: expiring unread articles
2005-11-08 12:20 ` Bastien
@ 2005-11-08 17:57 ` Mark T.B. Carroll
0 siblings, 0 replies; 5+ messages in thread
From: Mark T.B. Carroll @ 2005-11-08 17:57 UTC (permalink / raw)
Bastien <bastien@xxx.fr> writes:
> Don't steal! Just use :) And YES, spam.el is very useful.
(-: In the spirit of sharing, here's what I came up with for the
expiration. In conjunction with auto expire, it appears to be enough to
do,
(defun gnus-expire-spam ()
"Expire SPAM articles."
(interactive)
(gnus-activate-group gnus-spam-group)
(let ((number-read (gnus-group-catchup gnus-spam-group t)))
(cond ((not (numberp number-read)) (message "Failed to expire spam."))
((= 0 number-read) (message "Expired no spam articles."))
((= 1 number-read) (message "Expired 1 spam article."))
( t (message "Expired %i spam articles." number-read))))
(gnus-group-update-group gnus-spam-group t))
I don't really know what I'm doing, TBH - I only started using Gnus at
all a week ago, and have never written much elisp, but this seems to
work well enough.
-- Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-11-08 17:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-07 2:13 Gnus: expiring unread articles Mark T.B. Carroll
2005-11-08 0:41 ` Bastien
2005-11-08 2:26 ` Mark T.B. Carroll
2005-11-08 12:20 ` Bastien
2005-11-08 17:57 ` Mark T.B. Carroll
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).