Hi, I am using the netxap package in a similar context. There was an ages old version on cpan which needed a few patches to work (at least with cyrus) but the version that came with suse linux was up to date
Wolfgang Hamann >> I'd like to knock together a utility for invoking SA against messages in an >> IMAP store, and it seems logical to build it as a Perl program using an >> IMAP package and Mail::SpamAssassin. Can anyone recommend a good Perl IMAP >> package? >> >> Server will be Dovecot on Fedora. My utility will take all messages in a >> folder of uncaught spam that aren't wrapped in a SA report, run them >> through the equivalent of sa-learn, wrap them in a SA report, and clear >> their "seen/read" state. >> >> Here's all the hits I get on CPAN for stuff about IMAP: >> >> <http://search.cpan.org/search?m=all&q=imap&s=1&n=100> >>