NOTMUCH-PROPERTIES(7)
π NOTMUCH-PROPERTIES π
ok so bestie, this is the notmuch-properties(7) page, and honestly? it's giving "secret lore that makes everything work" β¨ it's part of the notmuch manual, and it's all about message property conventions and documentation π
πΈ NAME πΈ
notmuch-properties β notmuch message property conventions and documentation π
β¨ SYNOPSIS β¨
notmuch count property:<key>=<value>
notmuch search property:<key>=<value>
notmuch show property:<key>=<value>
notmuch reindex property:<key>=<value>
notmuch tag +<tag> property:<key>=<value>
notmuch dump --include=properties
notmuch restore --include=properties
π¦ DESCRIPTION π¦
so like, a bunch of notmuch commands can search for, modify, add or remove properties that are attached to specific messages π
Properties are key/value pairs, and β plot twist β a single message can have more than one key/value pair for the same key. yes really. it's not a bug, it's just how it be π«Ά
So while you, my gorgeous reader, can totally select based on a specific property in your search terms using the property: prefix, the notmuch command-line interface does not give you a mechanism for modifying properties directly. nope! not for you, bestie π
Instead, message properties are expected to be set and used programmatically, according to logic in notmuch itself, or in extensions to it. it's giving "internal API energy" π
π Extensions to notmuch which make use of properties are encouraged to report the specific properties they use to the upstream notmuch project, as a way of avoiding collisions in the property namespace. do it for the girls!! π
π CONVENTIONS π
Any property whose key starts with "index." will be removed (and possibly re-set) upon reindexing β see notmuch-reindex. so like, heads up β οΈ
π MESSAGE PROPERTIES π
The following properties are set by notmuch internally in the course of its normal activity. these are the OGs, the main characters π₯
π index.decryption
If a message contains encrypted content, and notmuch tries to decrypt that content during indexing, it will add the property index.decryption=success when the cleartext was successfully indexed β
If notmuch attempts to decrypt any part of a message during indexing and that decryption attempt fails, it will add the property index.decryption=failure to the message β
Now, note this: it's possible for a single message to have both index.decryption=success and index.decryption=failure π³ Consider an encrypted e-mail message that contains another encrypted e-mail message as an attachment β if the outer message can be decrypted, but the attached part cannot, then both properties will be set on the message as a whole. so true bestie π
And if notmuch never tried to decrypt an encrypted message during indexing (which is the default, see index.decrypt in notmuch-config), then this property will not be set on that message at all. silence. nothing. ghosted π«₯
π§ session-key
When notmuch-show or notmuch-reply encounters a message with an encrypted part, if notmuch finds a session-key property associated with the message, it will try that stashed session key for decryption π
If you do not want to use any stashed session keys that might be present, you should pass those programs --decrypt=false. periodt π«
Using a stashed session key with "notmuch show" will speed up rendering of long encrypted threads. It also allows the user to destroy the secret part of any expired encryption-capable subkey while still being able to read any retained messages for which they have stashed the session key. This enables truly deletable e-mail, since (once the session key and asymmetric subkey are both destroyed) there are no keys left that can be used to decrypt any copy of the original message previously stored by an adversary. iconic behaviour honestly π
β οΈ HOWEVER β and this is the big one, bestie β access to the stashed session key for an encrypted message permits full byte-for-byte reconstruction of the cleartext message. This includes attachments, cryptographic signatures, and other material that cannot be reconstructed from the index alone. it's powerful and it is a lot π
See index.decrypt in notmuch-config for more details about how to set notmuch's policy on when to store session keys π
The session key should be in the ASCII text form produced by GnuPG. For OpenPGP, that consists of a decimal representation of the hash algorithm used (identified by number from RFC 4880, e.g. 9 means AES-256) followed by a colon, followed by a hexadecimal representation of the algorithm-specific key.
For example, an AES-128 key might be stashed in a notmuch property as:
session-key=7:14B16AF65536C28AF209828DFE34C9E0
look at that lil string go π₯Ή
π index.repaired
Some messages arrive in forms that are confusing to view β they can be mangled by mail transport agents, or the sending mail user agent may structure them in a way that's confusing. If notmuch knows how to both detect and repair such a problematic message, it will do so during indexing π οΈ
If it applies a message repair during indexing, it will use the index.repaired property to note the type of repair(s) it performed π
index.repaired=skip-protected-headers-legacy-display indicates that when indexing the cleartext of an encrypted message, notmuch skipped over a "legacy-display" text/rfc822-headers part that it found in that message, since it was able to index the built-in protected headers directly. slay, efficiency β¨
index.repaired=mixedup indicates the repair of a "Mixed Up" encrypted PGP/MIME message, a mangling typically produced by Microsoft's Exchange MTA. See <https://tools.ietf.org/html/draft-dkg-openpgp-pgpmime-message-mangling> for more information. yes, that is the real name of the draft. no, i did not make it up π
π SEE ALSO π
notmuch, notmuch-config, notmuch-dump, notmuch-insert, notmuch-new, notmuch-reindex, notmuch-reply, notmuch-restore, notmuch-search-terms, notmuch-show π
π«Ά Author
Carl Worth and many others π
π Copyright
2009-2026, Carl Worth and many others
okay bestie that's the whole page!! πβ¨ this was notmuch notmuch-properties(7), version 0.40, dated Jan 31, 2026 β go forth and stash those session keys responsibly, mwah ππ¦π
π¦ where this page comes from
- fedora 44: notmuch 0.40-1.fc44 Β· GPL-3.0-or-later
- fedora 44: notmuch 0.40-1.fc44 Β· GPL-3.0-or-later
- nixos 26.05: notmuch 0.40
- ubuntu resolute: notmuch 0.40-1ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms