notmuch
命令手册Command-line based program for indexing, searching, reading, and tagging large collections of email messages. More Information: https://notmuchmail.org/manpages/.
notmuch setup
notmuch tag +{{custom_tag}} "{{search_term}}"
notmuch tag -{{custom_tag}} "{{search_term}}"
notmuch count --output={{messages|threads}} "{{search_term}}"
notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} "{{search_term}}"
notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} --limit={{X}} "{{search_term}}"
notmuch reply --format={{default|headers-only}} --reply-to={{sender|all}} "{{search_term}}"