summaryrefslogtreecommitdiff
path: root/mail/p5-Mail-SpamAssassin
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2007-08-21 02:08:37 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2007-08-21 02:08:37 +0000
commit22e646bc59cf347c0b2bd679aee8ef33fe57ecb8 (patch)
tree52ed8519912093061fc40d5229e41fa23b22e4df /mail/p5-Mail-SpamAssassin
parent - add two sites to MASTER_SITE (diff)
Restore the -q[uiet] flag to 'sa-learn' that was lost in the 3.1.8 update.
Notes
Notes: svn path=/head/; revision=197998
Diffstat (limited to 'mail/p5-Mail-SpamAssassin')
-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
+