Re: Calling spamc and looping through files

2009-02-09 Thread cnone
I found what is wrong.Thank u Karsten The problem was format of the email files. There are two extra headers in the beginning of the emails FROM: and RCPT TO:.So I removed all these headers and now spamassassin is doing its job which is excellent:) Karsten Bräckelmann-2 wrote: > > On Mon, 2009-

Re: Calling spamc and looping through files

2009-02-09 Thread Karsten Bräckelmann
On Mon, 2009-02-09 at 03:54 -0800, cnone wrote: > I scanned over 2000 mails and it gave me score over 5.0 for all of them. Most > of the scores were 5.4.Is there a way to change default threshold? By the Yes, there is. Mind having a look at your configuration? The default local.cf ships with a gla

Re: Calling spamc and looping through files

2009-02-09 Thread Matus UHLAR - fantomas
On 09.02.09 03:54, cnone wrote: > I scanned over 2000 mails and it gave me score over 5.0 for all of them. If they are not really spams, there is something broken in your configuration apparently > Most of the scores were 5.4.Is there a way to change default threshold? By > the way if the score i

Re: Calling spamc and looping through files

2009-02-09 Thread cnone
I scanned over 2000 mails and it gave me score over 5.0 for all of them. Most of the scores were 5.4.Is there a way to change default threshold? By the way if the score is very higher than 5.0 like 8.0,does that mean it has the highest probability to be a spam? Matus UHLAR - fantomas wrote: > >>

Re: Calling spamc and looping through files

2009-02-09 Thread Matus UHLAR - fantomas
> On Sun, 2009-02-08 at 17:39 -0800, cnone wrote: > > Thank u very much.It works.By not accurate,you mean spam detection will not > > be accurate? On 09.02.09 03:50, Karsten Bräckelmann wrote: > By "accurate" I mean -- SA can do a best effort guess. SA can not one > hundred percent accurately iden

Re: Calling spamc and looping through files

2009-02-08 Thread cnone
Yes each file contains only one email.I have also mbox files containing multiple messages but they dont have content section.They only have headers.So I dont know how accurate results I will get. Karsten Bräckelmann-2 wrote: > > On Sun, 2009-02-08 at 17:39 -0800, cnone wrote: >> Thank u very muc

Re: Calling spamc and looping through files

2009-02-08 Thread Karsten Bräckelmann
On Sun, 2009-02-08 at 17:39 -0800, cnone wrote: > Thank u very much.It works.By not accurate,you mean spam detection will not > be accurate? By "accurate" I mean -- SA can do a best effort guess. SA can not one hundred percent accurately identify spam. Whenever any program is involved, there's alw

Re: Calling spamc and looping through files

2009-02-08 Thread cnone
Thank u very much.It works.By not accurate,you mean spam detection will not be accurate? Karsten Bräckelmann-2 wrote: > > On Sun, 2009-02-08 at 16:37 -0800, cnone wrote: >> How can I call spamc and loop through all mails(like 100 mbox email >> files) >> under a directory and decide which is spam

Re: Calling spamc and looping through files

2009-02-08 Thread Theo Van Dinter
I would use "formail -s" to go through the mbox file, and pipe the mail through procmail w/ an appropriate recipe file to filter the mails as you'd want. SpamAssassin is happy to markup your mails, but has no filtering capabilities since it doesn't deliver mail. On Sun, Feb 08, 2009 at 04:37:30PM

Re: Calling spamc and looping through files

2009-02-08 Thread Karsten Bräckelmann
On Sun, 2009-02-08 at 16:37 -0800, cnone wrote: > How can I call spamc and loop through all mails(like 100 mbox email files) > under a directory and decide which is spam which is not and save the spams > in a different dir? $ man spamc $ for f in *; do spamc -c < $f || mv $f spam/; done Bewar