Upon further investigation, I don't think sa-learn is even attempting to
open the file. I get the exact same message whether I give it a real
file or just a string of characters for a file name:
[C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn.exe --spam
--mbox c:\IMAPUtil\temp\uncaughtSpam.mstor\temp
Learned tokens from 0 message(s) (0 message(s) examined)
[C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn.exe --spam
--mbox xxxxxxxxxxxxxxxx
Learned tokens from 0 message(s) (0 message(s) examined)
This can't be right. How can I tell if it's really reading the file?
On 7/8/2017 2:14 PM, Jerry Malcolm wrote:
Thanks for the info. Unfortunately, I don't have a clue how to
interpret a regex expression. I couldn't find any reference to
mbox_format_from_regex in the 3.1.x Mail::SpamAssassin::Conf that came
up when I googled it.
The separators in my mbox file are:
From - Sat Jul 8 01:02:28 2017
Can someone who speaks regex tell me if this syntax is my problem, and
if so, point me to where I can find the correct regex that matches
this that I can copy/paste?
Thanks.
Jerry
On 7/8/2017 8:45 AM, RW wrote:
On Sat, 8 Jul 2017 01:57:47 -0500
Jerry Malcolm wrote:
Below is a complete log dump from the -D option on sa-learn.
...
_set_default_message_selection_opts After: Scanprob[1], want_date[0],
cache[0], from_regex[^From \S+ ?(\S\S\S \S\S\S .\d .\d:\d\d:\d\d
\d{4}|.\d-\d\d-\d{4}_\d\d:\d\d:\d\d_)]
Check that this default regex matches your mbox separator, you may need
to set mbox_format_from_regex. See the Mail::SpamAssassin::Conf
documentation
---
This email has been checked for viruses by AVG.
http://www.avg.com