command line to move/delete email

Wil Cooley wcooley at
Tue Aug 15 11:50:52 EDT 2006

On Tue, 2006-08-15 at 16:52 +0200, jf wrote:

> Do you know an easy way to do this, 


> without having to establish an imap connection and having to login as
> admin to the imap server ?

No; well, you have to connect with IMAP but you don't have to login as
admin--use ACLs.  It's fairly easy to script; here's a script I wrote to
feed spam from a folder into SpamAssassin's sa-learn and delete it:

You'll also need the from the parent directory.

Wil Cooley <wcooley at>
Naked Ape Consulting, Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the Info-cyrus mailing list