cleaning up mailbox.
murch at andrew.cmu.edu
Tue Mar 28 13:34:31 EST 2006
Andrzej Kwiatkowski wrote:
> I've got next question.
> My boss want to add next feature to clients.
> He wants to take possibility to push some kind of
> button which in action remove all mails from mailbox which are older f.e
> 7 days.
> I've read about popexpiretime, but my boss want to do this via
> configuration panel.
> So maybe someone could write example IMAP session for this ?
> Or any other solutions ?
You'll probably want to do something like this in your client:
SEARCH BEFORE <date>
STORE <sequence from SEARCH response> +flags \deleted
You'll have to look at RFC 3501 for details.
Project Cyrus Developer/Maintainer
Carnegie Mellon University
More information about the Info-cyrus