]> git.madduck.net Git - etc/mailfilter.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

switch to using spamc
authormartin f. krafft <madduck@seamus.madduck.net>
Tue, 14 Aug 2007 14:03:13 +0000 (16:03 +0200)
committermartin f. krafft <madduck@seamus.madduck.net>
Tue, 14 Aug 2007 14:03:13 +0000 (16:03 +0200)
bin/retrain
bin/train
procmail/defines

index a95fbc92d3600750da246af18820e23b52500724..8135509ec8db5bf8276aff8c6df53d35816fb9c8 100755 (executable)
@@ -1,8 +1,10 @@
 #!/bin/sh
 set -eu
 
-NICE='nice -20'
-PROCMAIL="$HOME/.etc/mailfilter/procmail/procmailrc"
+NICE='/usr/bin/nice -20'
+NICE=''
+
+PROCMAIL="$NICE $HOME/.etc/mailfilter/procmail/procmailrc"
 
 PAUSETIME=10
 
index 05a768f70c4c9e71ec4dc153829804b6dde9c7f5..4313c440a244b29bba9addf1504c9dc71c5c3f74 100755 (executable)
--- a/bin/train
+++ b/bin/train
@@ -5,17 +5,18 @@ USER=${USER:-$LOGNAME}
 DOMAIN=${DOMAIN:-$(hostname --fqdn)}
 
 NICE='/usr/bin/nice -20'
+NICE=''
 MAILFILTER=$HOME/.etc/mailfilter
 SA_PREFS="$MAILFILTER/spamassassin/user_prefs"
 MAILREAVER="$NICE $HOME/spamfilter/mailreaver.crm -u $MAILFILTER/crm114/"
 SPAMASSASSIN="$NICE /usr/bin/spamassassin -p $SA_PREFS"
-#SPAMC="$NICE /usr/bin/spamc -lxu ${USER}@${DOMAIN}"
-SA_REPORT="$SPAMASSASSIN --report"
-SA_REVOKE="$SPAMASSASSIN --revoke"
+SPAMC="$NICE /usr/bin/spamc -lx"
+SA_REPORT="$SPAMC -C report"
+SA_REVOKE="$SPAMC -C revoke"
 SA_LEARN="$NICE /usr/bin/sa-learn -p $SA_PREFS"
-SA_LEARN_HAM="$SA_LEARN --ham"
-SA_LEARN_SPAM="$SA_LEARN --spam"
-PRE_CLEANUP="$MAILFILTER/procmail/pre-spam-cleanup"
+SA_LEARN_HAM="$SPAMC -L ham"
+SA_LEARN_SPAM="$SPAMC -L spam"
+PRE_CLEANUP="$NICE $MAILFILTER/procmail/pre-spam-cleanup"
 
 HAM=0
 SPAM=0
index 7fc8df6389dc3f4565b967df46cfa0175750ddb4..e7d991a7aaa772f037e6a89b6eb728085020147b 100644 (file)
@@ -17,7 +17,7 @@ REPLIES=$MAILFILT/autoreplies
 LOGFILE=${LOGFILE:-$PMVAR/log}
 LOGABSTRACT=no
 
-NICE='/usr/bin/nice -20'
+#NICE='/usr/bin/nice -20'
 
 PROCMAIL="$NICE /usr/bin/procmail -p $PMDIR/procmailrc"
 FORMAIL="$NICE /usr/bin/formail -f"
@@ -27,8 +27,8 @@ SED="$NICE /bin/sed"
 CRM114="$NICE /usr/share/crm114/mailreaver.crm -u $MAILFILT/crm114/"
 SA_PREFS="$MAILFILT/spamassassin/user_prefs"
 SPAMASSASSIN="$NICE /usr/bin/spamassassin -p $SA_PREFS"
-#SPAMC="$NICE /usr/bin/spamc -lxu $ID"
-SPAMC="$SPAMASSASSIN"
+SPAMC="$NICE /usr/bin/spamc -lx"
+#SPAMC="$SPAMASSASSIN"
 TRAINER="$MAILFILT/bin/train"
 
 OURDATE=`date -R`