Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
spamassassin only scanning 2 messages?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Tue Jan 06, 2004 10:36 pm    Post subject: spamassassin only scanning 2 messages? Reply with quote

This might be a trivial question but I've searched the forum and looked on spamassassin.org without turning up anything relevant. I have two dir's, each with 700+ spam and ham messages respectively. I run

Code:
 sa-learn --dir --spam /home/user/.maildir/.ham
 sa-learn --dir --spam /home/user/.maildir/.spam


and both commands give this output:

Code:
Learned from 1 message(s) (2 message(s) examined).


It always examines 2 messages, no more, why is that?
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
Bad_Byte
n00b
n00b


Joined: 28 Dec 2003
Posts: 69
Location: Norway

PostPosted: Tue Jan 06, 2004 11:08 pm    Post subject: Reply with quote

The first and only thing that comes to my mind is, perhaps a permission problem?.

If that's not the case then I don't know what the problem is.
_________________
The sentence below this one is true.
The sentence above this one is false.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jan 06, 2004 11:12 pm    Post subject: Re: spamassassin only scanning 2 messages? Reply with quote

numerodix wrote:
Code:
 sa-learn --dir --spam /home/user/.maildir/.ham
 sa-learn --dir --spam /home/user/.maildir/.spam

Those directories don't contain mail - they contain the 3 directories that make up each and every maildir, with 'cur' being the read-mail dir.

To scan the mail you put there you have to scan the /cur dir; to scan new mail you have to scan the /new dir.

And scanning your ham as spam? That's quite funny...

There are two files in every top-level maildir, yes.
One is a dummy that says "this is a maildir", the other is the maildir's index.

I would recommend that you delete the bayesian db's before retrying, since you have succesfully "learned" the indexes of both ham and spam as spam...
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Tue Jan 06, 2004 11:21 pm    Post subject: Re: spamassassin only scanning 2 messages? Reply with quote

adaptr wrote:
numerodix wrote:
Code:
 sa-learn --dir --spam /home/user/.maildir/.ham
 sa-learn --dir --spam /home/user/.maildir/.spam

Those directories don't contain mail - they contain the 3 directories that make up each and every maildir, with 'cur' being the read-mail dir.

To scan the mail you put there you have to scan the /cur dir; to scan new mail you have to scan the /new dir.


Thanks a lot!

adaptr wrote:

And scanning your ham as spam? That's quite funny...


You know what I mean.. :)

adaptr wrote:

There are two files in every top-level maildir, yes.
One is a dummy that says "this is a maildir", the other is the maildir's index.

I would recommend that you delete the bayesian db's before retrying, since you have succesfully "learned" the indexes of both ham and spam as spam...


Actually I hadn't seen a maildir until last night so I didn't even know this.
_________________
undvd - ripping dvds should be as simple as unzip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum