Am Fr., 1. Aug. 2025 um 14:58 Uhr schrieb Daniel Kahn Gillmor <[email protected]>: > > Hi notmuch folks-- > > I have some e-mail correspondents with complex and unmemorable e-mail > addresses who either don't use a display name in their "From:" header, > or use a non-sensical display name. If i see an e-mail with "From: > mrq3xizik <[email protected]>" it's hard for me to know who that is in > the sea of all my other messages, even if i've corresponded with them > before. > > However, once they have proved themselves a reasonable correspondent, it > would be nice if i could see their mails annotated with a name of *my* > choice. Is there a straightforward way to do that with notmuch-emacs? > > I'm thinking of this like a "petname": > > http://www.skyhunter.com/marcs/petnames/IntroPetNames.html > > I'm thinking this would be a local binding from e-mail address to > petname, somewhere in the notmuch database. "notmuch search" would > indicate the petname, and somehow mark that it *is* a petname, as > opposed to what is in the header field. > > Is this already possible, or am i making a feature request?
Note that the way you describe it, the "petname function/mapping" would depend on the From: header value only, not on the message per se. This is what git does with its ".mailmap" file, or other MUAs with their address book - they rewrite displayed addresses. As such, it is not so much something to be stored in notmuch's xapian db; maybe a config which notmuch could use to rewrite addresses before displaying (header -> petname) or using (petname -> real address, then query; if the mapping is invertible) them. Michael _______________________________________________ notmuch mailing list -- [email protected] To unsubscribe send an email to [email protected]
