This HOWTO explains how to use two widely used utilities to regularly grab a copy of your POPFile buckets page by email so you can retain a history of your POPFile statistics over time.
Although the instructions here are Windows specific, the methods used can easily be applied to other non-windows platforms by locating a platform specific version of the utilities (or comparable replacements).
POPFile is an automatic email classification tool authored by John Graham-Cumming available from SourceForge.
Obtain and install the utilities Blat and wget.
Obtain and install Blat from Tim Charron's page here.
install Blat in a directory in your path, or the POPFile directory
run Blat -install <server address> <senders address> to get Blat configured correctly. Make sure that <server address> points to an smtp server that you are permitted to relay mail thru, usually this will be the same smtp server you set up in your mail client.
Obtain and install GNU wget from the GNU site here.
install wget in a directory in your path, or the POPFile directory
Create a Batch File and set it up on a regular schedule in the Task Scheduler.
Create a batch file as follows (note: that's a dash letter O not zero):
wget -O - http://127.0.0.1:8080/buckets | blat - -t youremail@address.here -s "POPFile Buckets Report" -mime cls @exit
Save the batch file in your POPFile directory, name it mail_bucket_stats.bat
Use the Wizard to browse to your POPFile installation directory, usually "c:\Program Files\Popfile", and select the batch file mail_bucket_stats.bat
change the name of the task to Mail Bucket Stats
Select the frequency to run it
Select the time and day(s) to run it
Click finish
Close the task scheduler (or test it by right clicking on the new entry you made and selecting run)
You're done. The task scheduler will run the batch file at the time(s) you scheduled. The batch file will grab a copy of your buckets page and email it off to you. You can then set up a folder in your email client to retain those reports to build a history over time of your accuracy and bucket statistics.
Copyright (C) 2003 Scott W. Leighton
POPFile Utilities are licensed under the terms of the GNU General Public License.
Contributed to the POPFile project under the terms of the POPFile License Agreement.