LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Running spamassassin on a large number of email messages

[ILUG] Running spamassassin on a large number of email messages

Kingsley G. Morse Jr. change at nas.com
Wed Sep 10 00:54:30 IST 2008


Hi Timothy,

spamc's man page says it has extremely low
overhead.

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

Thanks,
Kingsley

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/



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell