script processing messages

Florin Andrei florin at andrei.myip.org
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

http://florin.myip.org/


---
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




More information about the Info-cyrus mailing list