]> git.cworth.org Git - notmuch-wiki/blobdiff - faq.mdwn
NotMuch -> Notmuch
[notmuch-wiki] / faq.mdwn
index 0c37abf0aeb9f10bea5e52b87c60e6dd13c95c93..c2a878442d2c5a1b425907a0ca26e4829dd520e8 100644 (file)
--- a/faq.mdwn
+++ b/faq.mdwn
@@ -15,3 +15,29 @@ with the same message (i.e. the files have identical Message-ID). A
 ## 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 /')