David Abrahams | 5 Jul 23:17

nnimap two-level expiry?


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
James Cloos | 6 Jul 01:53
Face

Re: nnimap two-level expiry?

>>>>> "David" == David Abrahams <dave <at> 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 <at> jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


Gmane