Andrzej Kwiatkowski wrote:
Hello.

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
EXPUNGE

You'll have to look at RFC 3501 for details.

--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to