custom property for messages with synthesized message-ids?

Daniel Kahn Gillmor dkg at
Sun Aug 18 13:31:49 PDT 2019

over in id:87mug6kyyv.fsf at i started looking at the
ways that notmuch sometimes synthesizes a message-id.

In previous discussions around it,  (e.g. in NEWS about notmuch 0.17)
it's assumed that the form of the message-id itself -- it starts with
"notmuch-sha1-" -- should be sufficient to distinguish such a message
from a non-synthesized messaage.

But, a mail user agent is typically well-served by paranoia -- an
external malicious party can of course generate a message myself with
such a message-id (e.g. this message).

The pattern that we've been gradually establishing is that when notmuch
itself does some unusual processing on a specific message, it notes the
fact of that processing in a property on the message object (cf

It would make sense to set such a property when synthesizing a
message-id, i think.  I don't have time to implement this myself right
now, but i thought i'd record it here on the mailing list as a feature

Maybe someone looking to cut their teeth on the notmuch codebase with a
relatively well-defined task could suggest a patch?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the notmuch mailing list