spamc's man page says it has extremely low
Perhaps something like the following simple script
would work for you.
$ find email_directory/ | while read message ; do cat $message | if ! spamc -c ; then echo $message is spam ; fi ; done
On 09/09/08 22:42, Timothy Murphy wrote:
> On Tuesday 09 September 2008, FRLinux wrote:
>> I have a directory containing about 50,000 email messages,
> of which I am sure over 95% is spam.
>> What is the best (quickest) way of passing these messages through spamassassin
> and deleting those that fail the test.
> [I'm running spamd on the machine in question.]
>> A simple script - if appropriate - would be very much appreciated.
>> > Hello Timothy, you didn't specify the mailbox format (mbox or Maildir)
>> They are in maildir format - 50,000 separate files.
> Timothy Murphy
> e-mail: gayleard /at/ eircom.net
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!