Index and search emails from a local Maildir. More information: https://man.cx/mu.
mu init --maildir={{path/to/directory}} --my-address={{name@example.com}}
mu index
mu find {{keyword}}
jellyfish containing the words apples or oranges:mu find to:{{alice}} subject:{{jellyfish}} {{apples}} OR {{oranges}}
soc (the * only works at the end of the search term) in the Sent Items folder:mu find 'subject:{{soc}}*' flag:{{unread}} maildir:'/{{Sent Items}}'
mu find 'mime:{{image/*}} size:{{2k..2m}} date:{{20210101..20211231}} from:{{sam}}
Bob in either name or email address:mu cfind {{Bob}}