Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap two-level expiry?
@ 2008-07-05 21:19 David Abrahams
  2008-07-05 23:53 ` James Cloos
  0 siblings, 1 reply; 2+ messages in thread
From: David Abrahams @ 2008-07-05 21:19 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding


I don't know if this is possible with nnimap, but I'm hoping someone can
tell me how to do it.  IMAP allows you to mark messages deleted and
then, sometime later, actually flush or "compress" the folder to remove
them completely.  I'd like expiry to do something like:

* mark all read articles as deleted
* actually remove all deleted articles over one week old

Is that, or anything like it, possible?

I realize that Gnus can hide read articles (very nicely!) but I need to
use other mail clients too (e.g. iPhone, RoundCube webmail), and they
don't always give me a good way to avoid looking at things.

Thanks in advance,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: nnimap two-level expiry?
  2008-07-05 21:19 nnimap two-level expiry? David Abrahams
@ 2008-07-05 23:53 ` James Cloos
  0 siblings, 0 replies; 2+ messages in thread
From: James Cloos @ 2008-07-05 23:53 UTC (permalink / raw)
  To: ding; +Cc: David Abrahams

>>>>> "David" == David Abrahams <dave@boostpro.com> writes:

David> I'd like expiry to do something like:

David> * mark all read articles as deleted
David> * actually remove all deleted articles over one week old

The IMAP EXPUNGE command does not take arguments, so you can't expunge
a subset of the artices which are marked deleted without doing:

    1) undelete those which are too young to expunge
    2) expunge
    3) re-delete those in step one.

If you only use gnus to access the imap server you can let gnus mark
read articles as expirable (eg with gnus-auto-expirable-newsgroups)
and it will mark deleted only those expirable articles older than
nnmail-expiry-wait days.

If you also have nnimap-expunge-on-close set to always EXPUNGE will
be called each time you exit the Summary buffer.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-05 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-05 21:19 nnimap two-level expiry? David Abrahams
2008-07-05 23:53 ` James Cloos

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).