3 lei-q - search for messages matching terms
7 lei q [OPTIONS] TERM [TERM...]
11 Search for messages across the lei store and externals.
13 TODO: Give common prefixes, or at least a description/reference.
19 =item -o PATH, --output=PATH, --mfolder=PATH
21 Destination for results (e.g., C<path/to/Maildir> or - for stdout).
25 =item -f FORMAT, --format=FORMAT
27 Format of results: C<maildir>, C<mboxrd>, C<mboxcl2>, C<mboxcl>,
28 C<mboxo>, C<json>, C<jsonl>, or C<concatjson>. The default format
29 used depends on C<--output>.
31 TODO: Provide description of formats?
35 Pretty print C<json> or C<concatjson> output. If stdout is opened to
36 a tty and used as the C<--output> destination, C<--pretty> is enabled
39 =item --mua-cmd=COMMAND, --mua=COMMAND
41 A command to run on C<--output> Maildir or mbox (e.g., C<mutt -f %f>).
42 For a subset of MUAs known to accept a mailbox via C<-f>, COMMAND can
43 be abbreviated to the name of the program: C<mutt>, C<mailx>, C<mail>,
48 Augment output destination instead of clobbering it.
52 Return all messages in the same thread as the actual match(es).
54 =item -d STRATEGY, --dedupe=STRATEGY
56 Strategy for deduplicating messages: C<content>, C<oid>, C<mid>, or
61 TODO: Provide description of strategies?
65 Whether to include results requiring network access. When local
66 externals are configured, C<--remote> must be explicitly passed to
67 enable reporting of results from remote externals.
71 Limit operations to those requiring network access.
75 Don't include results from externals.
77 =item -NUMBER, -n NUMBER, --limit=NUMBER
79 Limit the number of matches.
85 Shift start of search results.
91 Reverse the results. Note that this applies before C<--limit>.
93 =item -s KEY, --sort=KEY
95 Order the results by KEY. Valid keys are C<received>, C<relevance>,
102 Provide more feedback on stderr.
104 =item --torsocks=auto|no|yes, --no-torsocks
106 Whether to wrap L<git(1)> and L<curl(1)> commands with torsocks.
114 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
116 The mail archives are hosted at L<https://public-inbox.org/meta/>
117 and L<http://hjrcffqmbrq6wope.onion/meta/>
121 Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
123 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
127 L<lei-add-external(1)>,
128 L<Xapian::QueryParser Syntax|https://xapian.org/docs/queryparser.html>