Byteplant Forum

Home » CleanMail Support » CleanMail SpamAssassin Filter » sa learn
sa learn [message #335] Tue, 08 June 2004 19:39
jeffreytflansburg
Messages: 1
Registered: June 2004
Junior Member
I use Microsoft Outlook as a mail client.
I have saved a few spam messages as .msg files
I use the following command to learn spam:

sa\sa-learn –C sa\ruleset –spam “c:\spam\*.msg”

Upon completion of the program run, I receive the following:

Learned from 0 message(s) (3 message(s) examined).

Any idea why there was nothing learned?
Re: sa learn [message #336 is a reply to message #335] Wed, 09 June 2004 16:29 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
> I use Microsoft Outlook as a mail client.
> I have saved a few spam messages as .msg files
> I use the following command to learn spam:
>
> sa\sa-learn –C sa\ruleset –spam “c:\spam\*.msg”
>
> Upon completion of the program run, I receive the following:
>
> Learned from 0 message(s) (3 message(s) examined).
>
> Any idea why there was nothing learned?

One reason may be, that SpamAssassin remembers which mail messages
it's learnt already (either using sa-learn or by auto-learning), and will not
re-learn those messages again, unless you use the --forget option.
You can run sa-learn with the -D option to find out more.



Customer Support
Byteplant GmbH
Re: sa learn [message #337 is a reply to message #335] Wed, 16 June 2004 10:04 Go to previous message
InforMed Direct
Messages: 59
Registered: May 2004
Member
> I have saved a few spam messages as .msg files
> I use the following command to learn spam:

MSG files are binary Outlook format messages and AFAIK, aren't supported by the learner.

From discussions elsewhere on here (check the thread "Is the learner working"), I know of two solutions:

1. Ask users to move spam into a special mailbox
2. Periodically, download these messages into Outlook Express
3. Use DBXTRACT (freeware) to extract the messages into EML format
4. Run the leaner on these EML files

As above except use Mozilla as the email client to download the messages from Exchange - it has the functionality to export directly. We use the former route so can't comment exactly on the later.

Cheers, Rob.

Re: sa learn [message #338 is a reply to message #337] Sun, 03 July 2005 07:32 Go to previous message
Heidner
Messages: 121
Registered: February 2005
Senior Member
If you are using the full Microsoft Outlook with exchange OR another imap4 mail server - you could use the program I contributed "imap2mbox", it will logon to your mail server, open up the mailbox and export the entire mailbox to a "mbox" format file that can be read by spam assassin.

On my network - I've created a public folder that any mail receipent can drag and drop their spam or copy examples of ham. Then I have scripts that run early morning that pickup the spam and ham to learn them... automatically.
Previous Topic: Change message content in detected spammail
Next Topic: Display score of spam
Goto Forum:
  


Current Time: Thu Sep 29 15:34:29 CEST 2016