aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2007-08-21 10:08:37 +0800
committerobrien <obrien@FreeBSD.org>2007-08-21 10:08:37 +0800
commit1fba80296be8da0bbd669906fd94a0dd6352f67f (patch)
treef31ede70d6ec4a1dbc36f1754d8eb238e117bc54 /mail
parent2b95033862b506db887f0de0883c9eb0dc5ab6aa (diff)
downloadfreebsd-ports-gnome-1fba80296be8da0bbd669906fd94a0dd6352f67f.tar.gz
freebsd-ports-gnome-1fba80296be8da0bbd669906fd94a0dd6352f67f.tar.zst
freebsd-ports-gnome-1fba80296be8da0bbd669906fd94a0dd6352f67f.zip
Restore the -q[uiet] flag to 'sa-learn' that was lost in the 3.1.8 update.
Diffstat (limited to 'mail')
-rw-r--r--mail/p5-Mail-SpamAssassin/files/patch-sa-learn.raw27
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/p5-Mail-SpamAssassin/files/patch-sa-learn.raw b/mail/p5-Mail-SpamAssassin/files/patch-sa-learn.raw
new file mode 100644
index 000000000000..635cc317adc9
--- /dev/null
+++ b/mail/p5-Mail-SpamAssassin/files/patch-sa-learn.raw
@@ -0,0 +1,27 @@
+--- sa-learn.raw.orig Wed Aug 8 06:19:47 2007
++++ sa-learn.raw Mon Aug 20 19:05:06 2007
+@@ -101,6 +101,7 @@ GetOptions(
+ 'local|L' => \$opt{'local'},
+ 'no-sync|nosync' => \$opt{'nosync'},
+ 'showdots' => \$opt{'showdots'},
++ 'quiet|q' => \$opt{'quiet'},
+ 'progress' => \$opt{'progress'},
+ 'use-ignores' => \$opt{'use-ignores'},
+ 'no-rebuild|norebuild' => sub { $opt{'nosync'} = 1; warn "The --no-rebuild option has been deprecated. Please use --no-sync instead.\n" },
+@@ -433,7 +434,7 @@ eval {
+ $progress->final() if ($opt{progress} && $progress);
+
+ my $phrase = defined $forget ? "Forgot" : "Learned";
+- print "$phrase tokens from $learnedcount message(s) ($messagecount message(s) examined)\n";
++ print "$phrase tokens from $learnedcount message(s) ($messagecount message(s) examined)\n" if (!$opt{quiet});
+
+ # If we needed to make a tempfile, go delete it.
+ if ( defined $tempfile ) {
+@@ -601,6 +602,7 @@ Options:
+ (default: /etc/mail/spamassassin)
+ --cf='config line' Additional line of configuration
+ -D, --debug [area=n,...] Print debugging messages
++ -q, --quiet Reduce amount of information printed out
+ -V, --version Print version
+ -h, --help Print usage message
+