My client mail repository is in a sql db and is not an option for
sa-learn to read directly. That's fine. I wrote a utility that reads
all the mail out of the uncaught-spam folder from my db and creates an
mbox folder using the mstor java package. The mbox file gets created
with no problem. When I run sa-learn, it says 0 messages were
examined. The mbox folder has about 2500 spam messages in it. I've
seen lots of discussion on the forums about whether or not sa-learn will
'process' a message based on whether it's processed it before, etc. I
understand that. But this is the very first time I've ever tried to
run sa-learn. And this error implies that it is not even finding any
messages to process.
Here's the command and response: (Win server 2008)
[C:\Program Files\JAM Software\SpamAssassin in a Box]sa-learn
--spam --mbox --showdots c:\imaputil\temp\uncaughtspam.mstor\temp
Learned tokens from 0 message(s) (0 message(s) examined)
I've used the mstor package before and have had zero problems with it.
So I have no reason to assume it's creating a corrupted mbox folder
file. The mbox folder is present and is being found (I tried renaming
it and got a 'not found' error from sa-learn). I've opened it in an
editor, and to the extent I can tell, it looks like an mbox file. There
is about a 10-15 sec time lapse while sa-learn is 'running' before it
displays the message. So it appears that it's reading the mbox file.
But for some reason it thinks there are no messages inside it.
I'm at a loss right now. Is there anyway to get additional information
on why it thinks there are no messages in the mbox file? I can post the
mbox file if necessary. If there are any debug flags that will help me
figure out what is wrong, I can do debug as well.
Thanks.
Jerry