1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 09:55:24 +02:00
tldr/pages/common/notmuch.md
Managor 4b1e0196d1
common/*: reduce usage of "command-line" (part 3) (#16951)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-28 13:12:44 +00:00

979 B

notmuch

Index, search, read, and tag large collections of email messages. More information: https://notmuchmail.org/manpages/.

  • Configure for first use:

notmuch setup

  • Add a tag for all messages matching a search term:

notmuch tag +{{custom_tag}} "{{search_term}}"

  • Remove a tag for all messages matching a search term:

notmuch tag -{{custom_tag}} "{{search_term}}"

  • Count messages matching the given search term:

notmuch count --output={{messages|threads}} "{{search_term}}"

  • Search for messages matching the given search term:

notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} "{{search_term}}"

  • Limit the number of search results to X:

notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} --limit={{X}} "{{search_term}}"

  • Create a reply template for a set of messages:

notmuch reply --format={{default|headers-only}} --reply-to={{sender|all}} "{{search_term}}"