-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
this is nifty; a patch to courier-imap to call "sa-learn" when a user drags a message into a folder! - --j. - ------- Forwarded Message Date: Thu, 22 Dec 2005 10:11:31 -0800 From: Elliot Foster <elliotf-qpsmtpd .at. gratuitous.net> cc: qpsmtpd .at. perl.org [jm: snipped long quoted text] I use the same thing for reclassifications of spam, but have found the following useful: http://da.andaka.org/Doku/imapspamfilter.html Specifically, the patch to storeinfo.c that allows triggering of a command on storage of an message. Example from that page: >ON_COPY_TO_BOX_Spam="source /etc/profile; /usr/bin/sa-learn --spam \`pwd\`/'%s ' --dbpath \`pwd\`/../.spamassassin" >ON_COPY_TO_BOX_Trash="" >ON_COPY_TO_NOT_LISTED="source /etc/profile; /usr/bin/sa-learn --ham \`pwd\`/'% s' --dbpath \`pwd\`/../.spamassassin" > All my users have to do is drag an item out of their spam folder and into whatever other folder (other than trash) and it is automatically trained to be ham. It also erases the need to have a cron job (which is what I was doing before) to process the "Spam" mail folder. So cycles are not wasted looking for messages to be classified. [jm: snipped] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Exmh CVS iD8DBQFDqvn1MJF5cimLx9ARAiKBAJoDySeF/mzlPTdu4CSdatA2DwG95ACgoTFK 2kOeKfWIMdFVATJsYl9LDHY= =khyN -----END PGP SIGNATURE-----