You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2017/04/14 22:35:30 UTC

svn commit: r1791426 - /spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log

Author: sidney
Date: Fri Apr 14 22:35:30 2017
New Revision: 1791426

URL: http://svn.apache.org/viewvc?rev=1791426&view=rev
Log:
Bug 7405 - Error in commit of new option in seek-phrases-in-log was fixed in trunk after 3.4 was branched
This makes 3.4 branch same as what is in trunk

Modified:
    spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log

Modified: spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log?rev=1791426&r1=1791425&r2=1791426&view=diff
==============================================================================
--- spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log (original)
+++ spamassassin/branches/3.4/masses/rule-dev/seek-phrases-in-log Fri Apr 14 22:35:30 2017
@@ -27,14 +27,14 @@ seek-phrases-in-log - extract good-looki
 
 sub usage {
   die "
-usage: seek-phrases-in-log [--reqhitrate n] [--reqpatlength n]
+usage: seek-phrases-in-log [--reqhitrate n] [--reqpatlength n] [ --maxreqpatlength n]
    [--rules] [--ruletype 'type'] [--ruleprefix FOO]
    [--maxtextread n] --ham hamlog --spam spamlog
 
 --reqhitrate: percentage hit-rate against spam required (default: 0.5)
    (multiple values can be specified, separated by spaces)
 --reqpatlength: required pattern length, in characters (default: 0)
---maxreqpatlength: maximum pattern length, in characters (default: 2048)
+--maxreqpatlength: maximum pattern length, in characters (default: 1024)
 --maxtextread: bytes of message text examined (default: 32768)
 --rules: generate SpamAssassin rule output (default: 0)
 --ruleprefix: specify prefix string for rules (default: 'SEEK_')
@@ -59,6 +59,7 @@ sub logmsg;
 my %opt = ();
 $opt{reqhitrate} = 0.5;
 $opt{reqpatlength} = 0;
+$opt{maxreqpatlength} = 1024;
 $opt{maxtextread} = 32768;
 $opt{rules} = 0;
 $opt{ruleprefix} = 'SEEK_';
@@ -72,6 +73,7 @@ GetOptions(
         "ruleprefix=s" => \$opt{ruleprefix},
         "reqhitrate=s" => \$opt{reqhitrate},
         "reqpatlength=s" => \$opt{reqpatlength},
+        "maxreqpatlength=s" => \$opt{maxreqpatlength},
         "ruletype=s" => \$opt{ruletype},
         "maxtextread=s" => \$opt{maxtextread},
         "phase2=s" => \$opt{phase2},