diff options
author | Eric Wong <e@80x24.org> | 2021-03-26 06:29:37 +0200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-26 19:59:34 +0000 |
commit | 43c43f785aa53607a0dd050989da5d7fd0dcfff4 (patch) | |
tree | f9fd037a837f4e38c654d7bb450f22b9473147dc /lib/PublicInbox/LeiOverview.pm | |
parent | 37dfb2c0d3c60277567325c15d5695b2dee03ad1 (diff) | |
download | public-inbox-43c43f785aa53607a0dd050989da5d7fd0dcfff4.tar.gz |
"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.
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r-- | lib/PublicInbox/LeiOverview.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |