You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "D.J. Harbaugh" <dh...@sssnet.com> on 2004/05/14 21:36:30 UTC

Reporter Utility

Hello all!

Ok, I've not seen anything like this out there before, so I decided to put 
my first utility for SA out for all to use.  Hopefully you all like/use 
it!  I wasn't able to find a utility that would easily report spam to my 
Bayesian filter, DCC/Razor/Pyzor, and SpamCop all in one.  Doing all three 
separately was a pain in the butt and a waste of a lot of time, so I 
figured it would be great to have a utility to do all three at once.  The 
primary purpose of the script was simply to report Bayes and send me the 
results of the learning, but it grew to help the rest of the spam-fighting 
community.  In order to use it, you must be using Qmail, an MTA using 
Maildir format, or have a web form to populate your spam/ham directories.

Being its primary goal in life is to submit mail to the Bayes filter, it 
expects a directory containing your spam and one containing your ham as 
well.  It will learn from these directories and send you an email showing 
what it learned and how many of each type of mail are in your Bayes 
DB.  You can turn off the notification if you like, or if you don't have 
Bayes you can turn this entire feature off if you like.

You can also report to DCC/Razor/Pyzor all at once as well.  I've not 
tested with Pyzor as I don't use it, but it should work due to the way SA 
does it's reporting.  This too can be disabled if you're not using DCC, 
Razor, or Pyzor.

Lastly you can send your mail to a SpamCop account if you have one as 
well.  As with the other two features, this can be shut off.

Feedback is appreciated.  I don't claim to be the best programmer in the 
world, or even a very good one, so please be gentle :-)  I also have a 
script to accept input from a web form to populate the spam/ham directories 
for those not privileged enough to be running *ix that goes with this.  I 
have to clean it up so I'm not embarrassed by my coding before releasing it 
first :-)

You can find the script at http://www.daringone.net/files/3in1reporter.pl

- D.J.


Re: Reporter Utility

Posted by Jim Knuth <jk...@jkart.de>.
Hallo und guten Abend D.J.,

danke für die Email vom 14.05.2004 um 23:44
D.J. Harbaugh schrieb - wrote:

> *Sheepish grin*... oops!  Try it again :-)



solved. *big grin* Thank you

-- 
Viele Grüße, Kind regards,
 Jim Knuth
 jk@jkart.de
----------
Zufalls-Zitat
----------
Manchmal sagt jemand etwas echt Belangloses...und es paßt
genau in den leeren Fleck in Deinem Herzen. Und Du spürst,
wie es sich dort festsetzt, vielleicht für den Rest Deines Lebens.
----------
Dieser Text hat nichts mit dem Empfänger der Mail zu tun
----------
    
virengeprüft mit NOD32 Version 1.760 Update 14.05.2004


Re: Reporter Utility

Posted by "D.J. Harbaugh" <dh...@sssnet.com>.
*Sheepish grin*... oops!  Try it again :-)

At 05:27 PM 5/14/2004, you wrote:
>Hallo und guten Abend D.J.,
>
>danke für die Email vom 14.05.2004 um 21:36
>D.J. Harbaugh schrieb - wrote:
>
>
> > You can find the script at
> > http://www.daringone.net/files/3in1reporter.pl
>
> > - D.J.
>
>
>Forbidden
>
>You don't have permission to access /files/3in1reporter.pl on this server.
>
>--
>Viele Grüße, Kind regards,
>  Jim Knuth
>  jk@jkart.de
>----------
>Zufalls-Zitat
>----------
>Trotz der vielen Ratten,die die Elendsviertel von New York City
>bevölkern, werden im Jahr durchschnittlich nur 311 Bürger von ihnen
>gebissen. Jedoch werden jährlich etwa 1519 Einwohner von anderen New
>Yorkern gebissen.
>----------
>Dieser Text hat nichts mit dem Empfänger der Mail zu tun
>----------
>
>virengeprüft mit NOD32 Version 1.759 Update 13.05.2004


Re: Reporter Utility

Posted by Jim Knuth <jk...@jkart.de>.
Hallo und guten Abend D.J.,

danke für die Email vom 14.05.2004 um 21:36
D.J. Harbaugh schrieb - wrote:


> You can find the script at
> http://www.daringone.net/files/3in1reporter.pl

> - D.J.


Forbidden

You don't have permission to access /files/3in1reporter.pl on this server.

-- 
Viele Grüße, Kind regards,
 Jim Knuth
 jk@jkart.de
----------
Zufalls-Zitat
----------
Trotz der vielen Ratten,die die Elendsviertel von New York City
bevölkern, werden im Jahr durchschnittlich nur 311 Bürger von ihnen
gebissen. Jedoch werden jährlich etwa 1519 Einwohner von anderen New
Yorkern gebissen.
----------
Dieser Text hat nichts mit dem Empfänger der Mail zu tun
----------
    
virengeprüft mit NOD32 Version 1.759 Update 13.05.2004


Re: Reporter Utility

Posted by "D.J. Harbaugh" <dh...@sssnet.com>.
At 04:48 PM 5/17/2004, you wrote:
>D.J. Harbaugh wrote:
>
>>You can find the script at http://www.daringone.net/files/3in1reporter.pl
>
>Shouldn't the two lines in the Bayes learning section...
>
>         $spam = `sa-learn --spam 
> /etc/mail/spamassassin/bayes-learn/spam`;
>         ....
>         $ham = `sa-learn --ham /etc/mail/spamassassin/bayes-learn/ham`;
>
>be using $spampath and $hampath ?
>
>- Joe


WHOOPS!  Heh heh... that was from when I still had it hardcoded for my 
personal use :-) 


Re: Reporter Utility

Posted by Joe Emenaker <jo...@emenaker.com>.
D.J. Harbaugh wrote:

> You can find the script at http://www.daringone.net/files/3in1reporter.pl

Shouldn't the two lines in the Bayes learning section...

	$spam = `sa-learn --spam /etc/mail/spamassassin/bayes-learn/spam`;	
	....
	$ham = `sa-learn --ham /etc/mail/spamassassin/bayes-learn/ham`;

be using $spampath and $hampath ?

- Joe