Quick install:

mkdir ~/.spamassassin
cp docs/imapsa.conf ~/.spamassassin/
vi ~/.spamassassin/imapsa.conf

chmod +x ImapAssassin
cp ImapAssassin /usr/local/bin/ImapAssassin

How to run:

ImapAssassin &




FUTURE WORK:

* Make configuration parameters also available via command line (getopt::long)
* razor-agent.log needs to end up in /var/log maybe

# maybe figure out a clean way to incorporate using the internaldate instead of MID for processing only "new" messages... until then it's out. 
# .. can't do this automatically because then if user moves old messages to inbox for them to be scanned they will be ignored.
# .. also cant specify this in the config file because the search since date has to be dynamically updated
# .. and if the user wants to search the opposite direction, we'd have to replace 'since' with 'before'
#		my ($internaldate) = $IMAP->fetch($MID,'INTERNALDATE');
#		$internaldate =~ m/(\d\d-\w\w\w-\d\d\d\d)/; # example format: * 16 FETCH (INTERNALDATE "03-Apr-2007 04:17:34 +0000" UID 25)
#		my $searchdate = $1;
#		print STDERR " ... date: $internaldate => $searchdate\n";
#		next;
