about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-28 10:45:17 +0000
committerEric Wong <e@80x24.org>2019-10-30 08:48:10 +0000
commitec294cdbc5392fdb136572dbcedb250798023703 (patch)
treef08d674c2fa70a093c217ac4df77e38ef5257521 /script
parentbc6b44cd7feee7e83ef1dcf26092808f92f757d9 (diff)
downloadpublic-inbox-ec294cdbc5392fdb136572dbcedb250798023703.tar.gz
Use <foo|bar> since that seems to be the favored notation
for required command args (taking a hint from git(1) manpage).
While we're at it, remove the space after '<' for the redirect
to match git.git coding style.
Diffstat (limited to 'script')
-rwxr-xr-xscript/public-inbox-learn4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/public-inbox-learn b/script/public-inbox-learn
index d2d665d5..ad132985 100755
--- a/script/public-inbox-learn
+++ b/script/public-inbox-learn
@@ -4,7 +4,7 @@
 #
 # Used for training spam (via SpamAssassin) and removing messages from a
 # public-inbox
-my $usage = "$0 (spam|ham) < /path/to/message";
+my $usage = "$0 <spam|ham|rm> </path/to/message";
 use strict;
 use warnings;
 use PublicInbox::Config;
@@ -39,7 +39,7 @@ my $mime = PublicInbox::MIME->new(eval {
         $data
 });
 
-# spam is removed from all known inboxes
+# spam is removed from all known inboxes since it is often Bcc:-ed
 if ($train eq 'spam') {
         $pi_config->each_inbox(sub {
                 my ($ibx) = @_;