You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/09/27 04:58:40 UTC

svn commit: r1842070 - /spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist

Author: hege
Date: Thu Sep 27 04:58:40 2018
New Revision: 1842070

URL: http://svn.apache.org/viewvc?rev=1842070&view=rev
Log:
Use --after to skip old corpus

Modified:
    spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist

Modified: spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist?rev=1842070&r1=1842069&r2=1842070&view=diff
==============================================================================
--- spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist (original)
+++ spamassassin/trunk/masses/contrib/automasscheck-minimal/automasscheck-minimal.cf.dist Thu Sep 27 04:58:40 2018
@@ -68,22 +68,25 @@ INTERNAL_NETWORKS=""
 # .. created as runtime rules/99_custom.cf
 #CUSTOM_RULES="$HOME/custom_rules.cf"
 
+# Use --after selector for corpus to prevent unnecessary processing.
+# Current ruleqa settings: ham 6 years, spam 2 months
+# Anything older than that will be ignored by ruleqa regardless.
 run_all_masschecks() {
   ### sample: single corpus ###
   run_masscheck single-corpus \
-          ham:dir:/path/to/Maildir/.Ham/ \
-          spam:dir:/path/to/Maildir/.Spam/
+          --after=-174182400 ham:dir:/path/to/Maildir/.Ham/ \
+          --after=-4838400 spam:dir:/path/to/Maildir/.Spam/
 
   # If you have multiple separate corpuses, you can specify as many run_masscheck lines as you want below.
   ### user2 ###
   #run_masscheck user2 \
-  #             ham:mbox:/home/user2/mail/HAM \
-  #             spam:mbox:/home/user2/mail/SPAM \
+  #             --after=-174182400 ham:mbox:/home/user2/mail/HAM \
+  #             --after=-4838400 spam:mbox:/home/user2/mail/SPAM \
   # This is an example of Maildir instead of mbox
   ### user3 ###
   #run_masscheck user3 \
-  #             ham:dir:/home/user3/mail/HAM/cur \
-  #             spam:dir:/home/user3/mail/SPAM/cur
+  #             --after=-174182400 ham:dir:/home/user3/mail/HAM/cur \
+  #             --after=-4838400 spam:dir:/home/user3/mail/SPAM/cur
 }
 
 ### END CONFIGURATION ###