about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm15
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 1e720b89..91c95239 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -157,9 +157,10 @@ our %CMD = ( # sorted in order of importance/use:
 'plonk' => [ '--threads|--from=IDENT',
         'exclude mail matching From: or threads from non-Message-ID searches',
         qw(stdin| threads|t from|f=s mid=s oid=s), @c_opt ],
-'mark' => [ 'MESSAGE_FLAGS...',
-        'set/unset keywords on message(s) from stdin',
-        qw(stdin| oid=s exact by-mid|mid:s), @c_opt ],
+'mark' => [ 'KEYWORDS...',
+        'set/unset keywords on message(s)',
+        qw(stdin| in-format|F=s input|i=s@ oid=s@ mid=s@), @c_opt,
+        pass_through('-kw:foo for delete') ],
 'forget' => [ '[--stdin|--oid=OID|--by-mid=MID]',
         "exclude message(s) on stdin from `q' search results",
         qw(stdin| oid=s exact by-mid|mid:s), @c_opt ],
@@ -348,7 +349,7 @@ my %CONFIG_KEYS = (
         'leistore.dir' => 'top-level storage location',
 );
 
-my @WQ_KEYS = qw(lxs l2m imp mrr cnv p2q); # internal workers
+my @WQ_KEYS = qw(lxs l2m imp mrr cnv p2q mark); # internal workers
 
 # pronounced "exit": x_it(1 << 8) => exit(1); x_it(13) => SIGPIPE
 sub x_it ($$) {
@@ -460,7 +461,7 @@ sub lei_atfork_child {
                 open STDERR, '+>&='.fileno($self->{2}) or warn "open $!";
                 delete $self->{0};
         }
-        delete @$self{qw(cnv)};
+        delete @$self{qw(cnv mark imp)};
         for (delete @$self{qw(3 old_1 au_done)}) {
                 close($_) if defined($_);
         }
@@ -690,10 +691,6 @@ sub lei_show {
         my ($self, @argv) = @_;
 }
 
-sub lei_mark {
-        my ($self, @argv) = @_;
-}
-
 sub _config {
         my ($self, @argv) = @_;
         my %env = (%{$self->{env}}, GIT_CONFIG => undef);