script processing messages

Florin Andrei florin at
Thu Jun 10 19:28:03 EDT 2004

What's the most simple method to connect to a Cyrus IMAP server, login
as a user, go to a certain folder (the path is known), delete all
messages in it, then logout - and do all that from a shell script? (a
cron job)

What i have to accomplish is to periodically grab all messages from a
folder then empty the folder. I know i can simply copy the message files
from the Cyrus spool, because that's exactly what i need (one message
per file, and it must be the whole message, headers included), however i
need a method to cleanly delete the messages afterwards.

Florin Andrei

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list