View previous topic :: View next topic |
Author |
Message |
numerodix l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/50ca19a23ded101ddd1e4.jpg)
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Tue Jan 06, 2004 10:36 pm Post subject: spamassassin only scanning 2 messages? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bad_Byte n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/491086294412ad26a5044d.gif)
Joined: 28 Dec 2003 Posts: 69 Location: Norway
|
Posted: Tue Jan 06, 2004 11:08 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Tue Jan 06, 2004 11:12 pm Post subject: Re: spamassassin only scanning 2 messages? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
numerodix l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/50ca19a23ded101ddd1e4.jpg)
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Tue Jan 06, 2004 11:21 pm Post subject: Re: spamassassin only scanning 2 messages? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|