mu4e queries are the same as the ones that
understands23. You can
mu-query man page for the details.
mu4e supports TAB-completion for queries. There
there is completion for all search keywords such as
date: and also for certain values, i.e., the
possible values for
Let’s look at some examples here.
from:john and flag:attach and bananas
subject:wombat and date:20170601..20170630
maildir:/projects and mime:application/pdf
/Sent Itemsfolder. Note that maildirs with spaces must be quoted.
"maildir:/Sent Items" and rupert
flag:signed and prio:high
from:jim and not flag:attach
subject:Ångström and flag:unread
date:20120301..20130831 and nightingale and flag:unread
date:2w.. and emacs
Note — in the The headers view you may see the ‘friendly name’ for a list; however, when searching you need the real name. You can see the real name for a mailing list from the friendly name’s tool-tip.
Get all messages with image attachments, and note that the ‘*’ wildcard can only appear as the term’s rightmost character:
Get all messages with files that end in
.ppt; this uses the
regular-expression support, which is powerful but relatively slow:
with the caveat that command-line queries are
subject to the shell’s interpretation before
mu sees them