X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSearch.pm;h=273cc57cf94ba8b12d18acfcefd4aaa13e8a2c7a;hb=refs%2Fheads%2Fmaster;hp=2feb3e13b49d222bc7bd28430a9cf159692a933f;hpb=213e03e1f9624faa4a3a9813f1eac5035c1eb62a;p=public-inbox.git diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 2feb3e13..273cc57c 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -460,8 +460,9 @@ sub _enquire_once { # retry_reopen callback $enquire->set_sort_by_relevance_then_value(TS, !$opts->{asc}); } - # `mairix -t / --threads' or JMAP collapseThreads - if ($opts->{threads} && has_threadid($self)) { + # `lei q -t / --threads' or JMAP collapseThreads; but don't collapse + # on `-tt' ({threads} > 1) which sets the Flagged|Important keyword + if (($opts->{threads} // 0) == 1 && has_threadid($self)) { $enquire->set_collapse_key(THREADID); } $enquire->get_mset($opts->{offset} || 0, $opts->{limit} || 50);