[Spambayes-checkins] website server_side.ht, 1.2, 1.3 unix.ht, 1.8, 1.9

Neale Pickett npickett at users.sourceforge.net
Wed Oct 15 00:44:43 EDT 2003


Update of /cvsroot/spambayes/website
In directory sc8-pr-cvs1:/tmp/cvs-serv8402

Modified Files:
	server_side.ht unix.ht 
Log Message:
* Replace "hammiefilter" with "sb_filter" in a few places


Index: server_side.ht
===================================================================
RCS file: /cvsroot/spambayes/website/server_side.ht,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** server_side.ht	24 Sep 2003 06:16:51 -0000	1.2
--- server_side.ht	15 Oct 2003 04:44:41 -0000	1.3
***************
*** 37,41 ****
  <pre>
  #!/bin/sh
! /usr/bin/hammiefilter.py -d /var/spambayes/hammie.db -f | /usr/sbin/sendmail -f $*
  </pre></li>
  </ol>
--- 37,41 ----
  <pre>
  #!/bin/sh
! /usr/local/bin/sb_filter.py -d /var/spambayes/hammie.db -f | /usr/sbin/sendmail -f $*
  </pre></li>
  </ol>

Index: unix.ht
===================================================================
RCS file: /cvsroot/spambayes/website/unix.ht,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** unix.ht	13 Oct 2003 04:49:52 -0000	1.8
--- unix.ht	15 Oct 2003 04:44:41 -0000	1.9
***************
*** 19,23 ****
  delivery agent and your email package picks up your primary mail from a
  local spool file (e.g. <code>/var/spool/mail</code>), you will probably find
! hammiefilter.py the easiest application to integrate into your mail
  environment.</p>
  <p>An example setup is as follows (thanks to Alister Forbes for contributing this):
--- 19,23 ----
  delivery agent and your email package picks up your primary mail from a
  local spool file (e.g. <code>/var/spool/mail</code>), you will probably find
! sb_filter.py the easiest application to integrate into your mail
  environment.</p>
  <p>An example setup is as follows (thanks to Alister Forbes for contributing this):
***************
*** 25,35 ****
  <li>Install spambayes with the usual <pre>setup.py install</pre></li>
  <li>Create the database that spambayes will use to test your incoming mail:
! <pre>/usr/local/bin/hammiefilter.py -d $HOME/.hammie.db -n</pre></li>
  <li>Train it on your existing mail. This is optional, but a good idea. -g is the flag for the known good mail, and -s is for known spam 
! <pre>/usr/local/bin/mboxtrain.py -d $HOME/.hammie.db -g $HOME/Mail/inbox -s $HOME/Mail/spam</pre></li>
  <li>Adding the following recipes to the top of your .procmailrc will get the spam and unsure stuff out of the way. Allowing everything else to be filtered as per your normal procmail recipes.
  <pre>
        :0fw:hamlock
!       | /usr/local/bin/hammiefilter.py -d $HOME/.hammie.db
  
        :0
--- 25,35 ----
  <li>Install spambayes with the usual <pre>setup.py install</pre></li>
  <li>Create the database that spambayes will use to test your incoming mail:
! <pre>/usr/local/bin/sb_filter.py -d $HOME/.hammie.db -n</pre></li>
  <li>Train it on your existing mail. This is optional, but a good idea. -g is the flag for the known good mail, and -s is for known spam 
! <pre>/usr/local/bin/sb_mboxtrain.py -d $HOME/.hammie.db -g $HOME/Mail/inbox -s $HOME/Mail/spam</pre></li>
  <li>Adding the following recipes to the top of your .procmailrc will get the spam and unsure stuff out of the way. Allowing everything else to be filtered as per your normal procmail recipes.
  <pre>
        :0fw:hamlock
!       | /usr/local/bin/sb_filter.py -d $HOME/.hammie.db
  
        :0
***************
*** 43,47 ****
  </li>
  <li>For ongoing training, there is a handy little cronjob that will run at 2:21 am every morning, training the database with good mail from Inbox and spam from caughtspam. Just add the following to your crontab
! <pre>21 2 * * * /usr/local/bin/mboxtrain.py -d $HOME/.hammie.db -g $HOME/Mail/Inbox -s $HOME/Mail/spam</pre>
  </li>
  </ol>
--- 43,47 ----
  </li>
  <li>For ongoing training, there is a handy little cronjob that will run at 2:21 am every morning, training the database with good mail from Inbox and spam from caughtspam. Just add the following to your crontab
! <pre>21 2 * * * /usr/local/bin/sb_mboxtrain.py -d $HOME/.hammie.db -g $HOME/Mail/Inbox -s $HOME/Mail/spam</pre>
  </li>
  </ol>
***************
*** 225,229 ****
      Ftoc_Iterate line {
          set msgid [ Ftoc_MsgNumber $line ]
!         eval {MhExec hammie.py -d -s $mhProfile(path)/$exmh(folder)/$msgid } 
      }
  }
--- 225,229 ----
      Ftoc_Iterate line {
          set msgid [ Ftoc_MsgNumber $line ]
!         eval {MhExec sb_filter.py -s $mhProfile(path)/$exmh(folder)/$msgid } 
      }
  }
***************
*** 233,237 ****
      Ftoc_Iterate line {
          set msgid [ Ftoc_MsgNumber $line ]
!         eval {MhExec hammie.py -d -g $mhProfile(path)/$exmh(folder)/$msgid } 
      }
  }
--- 233,237 ----
      Ftoc_Iterate line {
          set msgid [ Ftoc_MsgNumber $line ]
!         eval {MhExec sb_filter.py -g $mhProfile(path)/$exmh(folder)/$msgid } 
      }
  }





More information about the Spambayes-checkins mailing list