What's the message's UID in the message storage of cyrus imapd.

Andrew Morgan morgan at orst.edu
Mon Aug 17 12:55:35 EDT 2009


On Mon, 17 Aug 2009, Penghui Wang wrote:

> Thanks very much for your advice. If this task could handled in the protocol
> level. That should be great.
>
> Here are what i wanna do:
> Some mail clients has the feature to archive the messages by date. For
> instance, they could create a mail folder named by the month such as 2009-08
> each month.
> I wanna do this operation on the server side. So i have to created the
> folder then find all the message in this month then move all of them to the
> new folder.
>
> But i am not sure the protocol operations if i don't know the password of
> every account. If i wanna do this via Perl, do you have some good idea?

You should be able to use the Mail::IMAPClient perl module to do this. 
You just need to construct an IMAP search that returns the results you 
want (either "search" or "since" functions), then use the results to copy 
the messages to your archive folder.

 	Andy


More information about the Info-cyrus mailing list