On Thu, 2005-05-12 at 16:35 -0600, Sun Advocate Webmaster wrote: > I have a simple question concerning mail deletion in Cyrus mailboxes. I > have spamassassin set up, with two mailboxes "[EMAIL PROTECTED]" and > "[EMAIL PROTECTED]". A shell script runs periodicly and parses these > messages (sa-learn compiles training data from the messages). After that > parsing is done, it needs to empty the mailboxes. > > I was going to add a "rm" command, but I'm thinking that will cause data > corruption with cyrus. > > Is there a better way to do this?
Fiddling directly with the Cyrus mail spool is a bad thing. Here's a script I wrote to do what you want, except for the 'notspam' part: http://haus.nakedape.cc/svn/public/trunk/small-projects/mail-utils/bayesuck/ You'll also need the simaplib.py from the parent directory. Wil -- Wil Cooley [EMAIL PROTECTED] Naked Ape Consulting http://nakedape.cc * * * * Linux, UNIX, Networking and Security Solutions * * * *
signature.asc
Description: This is a digitally signed message part