ImapSpamScan.pl

ImapSpamScan.pl

Perl script to scan IMAP folder with lib SpamAssassin. Detect and move to Junk/trash folder.

Dependence

  • For Ubuntu/Debian : aptitude install libmail-imapclient-perl libmail-spamassassin-perl libdbi-perl
  • For other : cpan -i Mail::SpamAssassin Mail::IMAPClient DBI

Usage

-verbose                     : Print verbose messages
-debug                       : Print debugging messages
-imapsrv=                    : IMAP server (localhost)
-imapuser=                   : IMAP user (env user)
-imappassword=               : IMAP password (empty)
-imappasswordfile=           : IMAP password in file (empty)
-imapssl                     : IMAP ssl (false)
-imapinbox=                  : IMAP inbox folder (INBOX)
-imapjunk=                   : IMAP spam folder (Junk)
-db=                         : SPAM (/tmp/imapspamscan.db)
-dbrotate=                   : Number of day to DB clean (7)
-daemon                      : Daemon mode
-daemonsleep=                : Number of seconds to wait (30)
-help                        : This page
-version                     : This page

License

License Beerware http://en.wikipedia.org/wiki/Beerware

Development Team
Admins
David Mercereau

Powered by InDefero,
a Céondo Ltd initiative.