[Dovecot] SpamAssassin training plugin
I found a plugin for dSPAM on this mailing list (http://thread.gmane.org/gmane.mail.imap.dovecot/4632/focus=4632) that was very useful to me. I just modified the code to work for SpamAssassin instead. The purpose of this plugin is to watch the mail that is in the user's spam folder. If the user manually moves a piece of mail into the spam folder then the mail must have been spam that was incorrectly classified. This plugin causes SpamAssassin to relearn that mail as spam. Anyone else who finds this functionality useful is welcome to follow the link below.
. http://chad.parry.org/software/dovecot/
- Chad Parry
On Wed, 2006-10-25 at 16:43 -0700, Chad Parry wrote:
I found a plugin for dSPAM on this mailing list (http://thread.gmane.org/gmane.mail.imap.dovecot/4632/focus=4632) that was very useful to me. I just modified the code to work for SpamAssassin instead. The purpose of this plugin is to watch the mail that is in the user’s spam folder. If the user manually moves a piece of mail into the spam folder then the mail must have been spam that was incorrectly classified. This plugin causes SpamAssassin to relearn that mail as spam. Anyone else who finds this functionality useful is welcome to follow the link below.
Nice, thanks for sharing. I've said many times that it could be done for spamassassin just as well but no one seemed to really want to do it so far.
#define SPAM_FOLDER_NAME "Junk E-mail"
interesting name :)
johannes
Johannes Berg wrote:
On Wed, 2006-10-25 at 16:43 -0700, Chad Parry wrote:
I found a plugin for dSPAM on this mailing list (http://thread.gmane.org/gmane.mail.imap.dovecot/4632/focus=4632) that was very useful to me. I just modified the code to work for SpamAssassin instead. The purpose of this plugin is to watch the mail that is in the user’s spam folder. If the user manually moves a piece of mail into the spam folder then the mail must have been spam that was incorrectly classified. This plugin causes SpamAssassin to relearn that mail as spam. Anyone else who finds this functionality useful is welcome to follow the link below.
Nice, thanks for sharing. I've said many times that it could be done for spamassassin just as well but no one seemed to really want to do it so far.
#define SPAM_FOLDER_NAME "Junk E-mail"
interesting name :)
Man, I wish I could program worth a crap... I'd sure like to get a plug-in that would do the same for ASSP...
--
Best regards,
Charles
On Thu, 2006-10-26 at 07:14 -0400, Charles Marcus wrote:
Man, I wish I could program worth a crap... I'd sure like to get a plug-in that would do the same for ASSP...
assp doesn't seem to have (from a quick look at the docs) a command line program that takes a message... It seems to operate only from an smtp session to assp-spam or assp-notspam... Hence, you'd probably be best off by writing a small python (python because it has excellent mail handling modules) script that takes a mail on stdin, makes it into an attachment to assp-spam/assp-notspam and sends it off using /usr/sbin/sendmail.
It doesn't seem too hard. Maybe a half-day project for someone skilled enough. Maybe your best bet is to point the assp developers back at the dspam plugin and tell them that you've heard [what I said in above paragraph about not having a command line client] and that you'd like to see integration like the competition (dspam and now spamassassin) already has. Maybe they'll bite :P
johannes
Man, I wish I could program worth a crap... I'd sure like to get a plug-in that would do the same for ASSP...
assp doesn't seem to have (from a quick look at the docs) a command line program that takes a message... It seems to operate only from an smtp session to assp-spam or assp-notspam... Hence, you'd probably be best off by writing a small python (python because it has excellent mail handling modules) script that takes a mail on stdin, makes it into an attachment to assp-spam/assp-notspam and sends it off using /usr/sbin/sendmail.
It doesn't seem too hard. Maybe a half-day project for someone skilled enough. Maybe your best bet is to point the assp developers back at the dspam plugin and tell them that you've heard [what I said in above paragraph about not having a command line client] and that you'd like to see integration like the competition (dspam and now spamassassin) already has. Maybe they'll bite :P
Thanks for the input/evaluation - I'll give it a shot...
:)
--
Best regards,
Charles
participants (3)
-
Chad Parry
-
Charles Marcus
-
Johannes Berg