fetching spam from users' junk folders
Mikhail T.
mi+cyrus at aldan.algebra.com
Wed Dec 7 12:35:28 EST 2016
On 07.12.2016 12:00, info-cyrus-request at lists.andrew.cmu.edu wrote:
> I use this to feed spamassassin automatically:
> https://packages.debian.org/jessie/sa-learn-cyrus
Do you even need that? Each message can be found on the filesystem
already in format directly understandable by sa-learn. I have the
following cron-job running on my server as the cyrus-user:
find /var/spool/imap/user/*/spam*/ -type f -name '[0-9]*.' | xargs
sa-learn --quiet --spam
As you can see, it is not even IMAP-aware. You may need it to be, if it
needs to run on a machine separate from Cyrus-server -- because that's
where your incoming mail is being filtered.
But even in that case, it would be faster to run the learning on the
Cyrus-system -- dealing with local files is always faster, than going
for the same files via IMAP -- and then copy the updated database over
to the incoming-mail server.
-mi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20161207/20c7a202/attachment.html>
More information about the Info-cyrus
mailing list