Andrzej Adam Filip anfi@onet.eu wrote:
Timo Sirainen tss@iki.fi wrote:
On 31.10.2010, at 16.40, Ingo Thierack wrote:
is it somehow possible to use sa-learn on sdbox-mailboxes?
Use doveadm fetch to extract the mails. http://wiki2.dovecot.org/Tools/Doveadm/Search has example how to go through all messages in a mailbox.
Another alternative may be to start spamd (spamassassin daemon) for the non root user serving request via unix socket.
Spamd do not have to be run as root
Spamd can listen on unix socket
Spamd can be configured via command line options to accept requests for learning
there is Mail::SpamAssassin::Client perl module for perl script to contact spamd "like spamc"
there is Mail::IMAP::Simple perl module to access IMAP mailboxes
Such approach would allow "fetch one, learn one delete one" instead of "fetch all, learn all, delete all".
It DOES NOT require source code modifications of spamd.
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu ... faster BogoMIPS calculations (yes, it now boots 2 seconds faster than it used to: we're considering changing the name from "Linux" to "InstaBOOT" -- Linus, in the announcement for 1.3.26