Re: fetching spam from users' junk folders
"Mikhail T. via Info-cyrus" <[email protected]>
| Newsgroups | gmane.mail.imap.cyrus |
|---|---|
| Message-ID | <[email protected]> |
On 07.12.2016 12:00, [email protected] 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 ---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus