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 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 always a possibility for mis-classified mail. Only a > human can be more accurate. > > As I hinted, the accuracy highly depends on your SA installation, and > even much more on your specific configuration and run-time data (like > Bayes). > > >> Karsten Bräckelmann-2 wrote: > > Nope. There is only one. Seriously. (This is nabble, you know...) > >> > 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? > > Ah, blarg. :/ Sorry, I mentally dropped the "mbox" once I read the > plural files, and assumed maildir. > > As Theo already mentioned, if this are really mbox files possibly > containing more than a single email each, you will need to pipe the > files to 'formail -s' to call spamc with the resulting split emails. > Also, you will need more magic to "move" identified spam -- which > actually will not be a move, given mbox files. procmail is your friend > here. > > My previously posted shell command will *not* work with mbox files > containing multiple messages. It will only work for single-email-per- > file maildirs. > > > -- > char > *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; > main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? > c<<=1: > (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; > }}} > > > -- View this message in context: http://www.nabble.com/Calling-spamc-and-looping-through-files-tp21905369p21906389.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.