On Fri, Dec 26, 2003 at 01:41:57PM -0600, Schwartz Avi wrote: <snip>
What I did was to create a new Cyrus account which has only permissions to access the shared "ham" and "spam" folders. A cron job runs a script which calls a python program that logs into the server using that account and reads the emails, processes them and then removes them. Here is the script. It can probably be improved, but it works for me. Be aware though that I am using spamassasin and amavisd-new on a Mandrake 9.1 system so it may work a bit differently under SuSE (such as file locations).
<lots snipped> Thanks for the script. I don't know python, but I'm trying to learn perl... I get the general idea, though. Also I was pointed towards the info-cyrus archives at http://marc.theaimsgroup.com/?l=info-cyrus&r=1&w=2 in an offlist reply. That looks promising WRT info on doing stuff with Cyrus::IMAP::Shell so I guess it's time for some more digging... :) Cheers, Jon -- Whatever rocks your boat!