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".
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu If happiness is in your destiny, you need not be in a hurry. -- Chinese proverb