Do you need to filter spam email on your IMAP account, but can’t do it on the email server and your client software (mutt?
) won’t provide that capability?
meet IMAP Spam Begone
a nifty python script that uses spamassassin to remotely mark (and optionally move/delete) spam mail over IMAP.
it can also use spam/ham folders to teach your spamassassin
Available in gentoo:
[*] mail-filter/isbg
Available versions: (~)0.99-r1
Homepage: http://redmine.ookook.fr/projects/isbg
Description: IMAP Spam Begone: a script that makes it easy to scan an IMAP inbox for spam using SpamAssassin
usage instructions here: http://redmine.ookook.fr/projects/isbg/wiki#SpamAssassin
some example commands I’m using:
# to check for spam:
isbg.py --imaphost [HOST] --imapuser [EMAIL] --delete --noreport --spamc
# to teach spamassassin:
isbg.py --imaphost [HOST] --imapuser [EMAIL] --noreport --teachonly --learnspambox INBOX.spam --learnhambox INBOX.read-mail --spamc
[...] IMAP Spam Begone – remote email spam filtering using spamassassin … [...]