Hi

> > sa-learn --spam  spammail.txt
> > sa-learn --ham nonspammail.txt
>
> Well, so now the question is: how do i feed those .txt files ?
> That's all i need to know.

One possibility is that you have file-access to the mail directory.

The other (what I use on a server) is to fetch mails with fetchmail:
What I have in crontab is:
13 *    * * *   root    fetchmail -f /etc/postfix/fetchmailrc_spam.rc -a 
--folder shared.spamtraining/Spam -m 'sa-learn --spam'
43 *    * * *   root    fetchmail -f /etc/postfix/fetchmailrc_spam.rc -a 
--folder shared.spamtraining/Ham -m 'sa-learn --ham'

The you need to create the shared folders and advise your users to copy spam 
and ham to the apropriate folders.

the fetchmailrc contains the user an password to login to the imap-server

In case of data security it might be a good idea to have a personal ham-folder 
for each user and create an additional accout with reading rights to that 
folder.

Regards
Sebastian Ries

-- 
------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/     email: [EMAIL PROTECTED]

Reply via email to