From 43c43f785aa53607a0dd050989da5d7fd0dcfff4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 26 Mar 2021 06:29:37 +0200 Subject: lei: add some labels support "lei q" now displays labels in JSON output, "lei mark" can add or remove labels for any messages. "lei ls-label" is supported, too. Unfortunately, "lei q" won't hande "kw:" or "L:" for external messages, they must be imported, first. --- lib/PublicInbox/LeiOverview.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiOverview.pm') diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm index 1ce2a098..b4d81328 100644 --- a/lib/PublicInbox/LeiOverview.pm +++ b/lib/PublicInbox/LeiOverview.pm @@ -227,7 +227,7 @@ sub ovv_each_smsg_cb { # runs in wq worker usually sub { # DIY prettiness :P my ($smsg, $mitem) = @_; return if $dedupe->is_smsg_dup($smsg); - $lse->xsmsg_vmd($smsg); + $lse->xsmsg_vmd($smsg, $smsg->{L} ? undef : 1); $smsg = _unbless_smsg($smsg, $mitem); $buf .= "{\n"; $buf .= join(",\n", map { @@ -251,7 +251,7 @@ sub ovv_each_smsg_cb { # runs in wq worker usually sub { my ($smsg, $mitem) = @_; return if $dedupe->is_smsg_dup($smsg); - $lse->xsmsg_vmd($smsg); + $lse->xsmsg_vmd($smsg, $smsg->{L} ? undef : 1); $buf .= $json->encode(_unbless_smsg(@_)) . $ORS; return if length($buf) < 65536; my $lk = $self->lock_for_scope; -- cgit v1.2.3-24-ge0c7