add 'mfind' command, like 'find' with mu4e defaults

Add a command 'mfind' which follows the mu4e defaults, i.e.
--include-related, --skip-dups.
This commit is contained in:
Dirk-Jan C. Binnema
2019-12-28 11:19:12 +02:00
parent 8cef8ac69c
commit a39668e00b
5 changed files with 34 additions and 11 deletions

View File

@ -1,4 +1,4 @@
## Copyright (C) 2008-2017 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
## Copyright (C) 2008-2019 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@ -32,4 +32,14 @@ dist_man_MANS = \
mu-script.1 \
mu-verify.1 \
mu-view.1 \
mu.1
mu.1 \
$(BUILT_SOURCES)
BUILT_SOURCES= \
mu-mfind.1
mu-mfind.1: mu-find.1
cp -f $< $@
CLEANFILES= \
$(BUILT_SOURCES)

View File

@ -296,6 +296,7 @@ Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
.BR mu (1),
.BR mu-index (1),
.BR mu-find (1),
.BR mu-mfind (1),
.BR mu-mkdir (1),
.BR mu-view (1),
.BR mu-extract (1)

View File

@ -4,6 +4,8 @@
mu find \- find e-mail messages in the \fBmu\fR database.
mu mfind \- find e-mail messages in the \fBmu\fR database with mu4e defaults.
.SH SYNOPSIS
.B mu find [options] <search expression>
@ -13,6 +15,9 @@ mu find \- find e-mail messages in the \fBmu\fR database.
\fBmu find\fR is the \fBmu\fR command for searching e-mail message
that were stored earlier using \fBmu index\fR(1).
\fBmu mfind\fR is a version of \fBmu find\fR that defaults to
\f--include-related\fR and \fB--skip-dups\fR, just like \fBmu4e\fR does.
.SH SEARCHING MAIL
\fBmu find\fR starts a search for messages in the database that match
@ -42,7 +47,7 @@ The search pattern is taken as a command-line parameter. If the search
parameter consists of multiple parts (as in the example) they are
treated as if there were a logical \fBand\fR between them.
For details on the possible queries, see
For details on the possible queries, see