I like to have IMAPAssassin running in the background
with no console window visible, so i converted it to log
to a file.
It was also annoying to not have the spam messages
deleted from the original folder when marked as spam
and copied to the spam folder, so i added the
functionality to expunge the deleted messages (this may
not be a problem with all mail servers as some may
automatically expunge when the client disconnects).
I also found it unnecessary that the messages were
marked as read and then as unread as they were
processed (if i were reading the message in my mail
reader at the same time it was being processed, it would
be marked unread by IMAPAssasin). So i changed
IMAPAssassin to not change the "seen" status of
messages that are not marked as spam.
Patch against 1.0
Full script of 1.0 + the patch