Goals
This scripts feeds the program spamoracle using dedicated IMAP mailboxes.
Specifications
For the sake of fighting spam, spamoracle exists!
In order to train this bayesian filter, people need to continue checking spam status of mail. This can be done using dedicated IMAP mailboxes. There must be at least 3 mailboxes: Spam.Confirmed, Spam.Failure and Spam.Proposed. Spamoracle check the spamness of a mail. If the mail is considered as a spam, it is filtered to Spam.Proposed. When user has time, he can move spam from any mailboxes to Spam.Confirmed (for undetected spam) or from Spam.Proposed (to confirm spamoracle decision). If a non spam mail is found into Spam.Proposed he should be moved into Spam.Failure.
This scripts empty Spam.Confirmed, Spam.Failure and use it to train spamoracle. Once done, emails are saved into a compressed mbox. The name of mbox is Spam.Failure.''YYYYMMDD-HHMMSS".mbox.gz and is located in a user defined backup dir. There is no option for not compressing the mbox, since this kind of mbox is mainly for backup (i don't think there is a real interest in reading spam).
One can also use extra IMAP mailboxes to train spamoracle. In the case of extra mailboxes, they won't be emptied at the end of the process. The program will only create a text file containing all mail id already used to train spamoracle.
The configuration file of this scripts is .config/admin-gallu/spamoracle. It is a YYYYMMDD-HHMMSS".mbox.gz and is located in a user defined backup dir. There is no option for not compressing the mbox, since this kind of mbox is mainly for backup (i don't think there is a real interest in reading spam).ini file. It contains only one "general" section.
General settings:
- imap-user, imap-server, imap-port, imap-password
- imap-user: user of the IMAP account
- imap-server: server of the IMAP account
- imap-port: port of the IMAP server
- imap-passwd: password of the IMAP account
- spam-confirmed: Spam.Confirmed mailbox
- spam-failure: Spam.Failure mailbox
- ham-list: mailboxes used to contain no spam mail
- backup-dir: directory where compressed mbox will be stored
Parameters can also be set using command line:
- --configuration file: read configuration file
- --imap-user user: c.f. imap-user
- --imap-server server: c.f. imap-server
- --imap-port port: c.f. imap-port
- --imap-passwd passwd: c.f. imap-passwd
- --backup-dir dir: c.f backup-dir
- --dbug, --dry-run, --quiet
Implementation
Lang: Perl
Status
Not yet begin




