X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=faq.mdwn;h=bb0efaa90c2b458ca5e6ec9ea1486e52d7da072a;hb=6af7f7dbf56bba07b8e3dcd567f51230c230b8d4;hp=6e7a3812e3d51b304971f99a082407e01f3d918f;hpb=fc25a51668a8bebcbeb6d86f9396b0dcf5bb314f;p=notmuch-wiki diff --git a/faq.mdwn b/faq.mdwn index 6e7a381..bb0efaa 100644 --- a/faq.mdwn +++ b/faq.mdwn @@ -1,3 +1,4 @@ +[[!img notmuch-logo.png alt="Notmuch logo" class="left"]] # Frequently Asked Questions [[!toc levels=2]] @@ -10,3 +11,45 @@ Notmuch searches are message based. Multiple files may be associated with the same message (i.e. the files have identical Message-ID). A `folder:` search will match the folder of any of the files. The `--output=files` option outputs all the files of all matching messages. + +## Shouldn't notmuch support inline PGP? + +[Why it might not be a good idea](https://dkg.fifthhorseman.net/notes/inline-pgp-harmful/) + +## How do I delete messages + +See [[excluding]]. + +## How do I configure the citation line when replying in Emacs? + + (setq message-citation-line-format "On %a, %d %b %Y, %f wrote:") + (setq message-citation-line-function 'message-insert-formatted-citation-line) + +See help for `message-citation-line-format` for details. + +## How do I search for messages that have no tags? + +Unfortunately, there is no way to do this directly. + +However, it's possible to accomplish this using two searches in shell. First, +you need to query all tags in the database, and transform the result into a +query that matches messages that have none of those tags: + + $ notmuch search --output=tags \* | sed 's/^/not tag:/;2~1s/^/and /' + +Next, use that to query the messages: + + $ notmuch search $(notmuch search --output=tags \* | \ + sed 's/^/not tag:/;2~1s/^/and /') + +## How do I search for punctuation, specific special characters, or regexp? + +Please see the [[notmuch-search-terms manual +page|manpages/notmuch-search-terms-7]] first. + +The main thing to understand is that Xapian, and therefore Notmuch, searches are +closer to natural language searches than regular expression +searches. Punctuation is mostly ignored. + +The boolean prefix searches (see Boolean and Probabilistic Prefixes in the man +page), such as tag: or path: searches, need an exact match.