mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Wildcards in mailmap to hide transgender people's deadnames
@ 2022-09-13 21:53 Florine W. Dekker
  2022-09-14  7:40 ` René Scharfe
  0 siblings, 1 reply; 14+ messages in thread
From: Florine W. Dekker @ 2022-09-13 21:53 UTC (permalink / raw)
  To: git

Hi! I would like to suggest that the mailmap feature accepts (a limited 
form of) wildcards for matching email addresses, which helps transgender 
users configure the mailmap to map their old name ("deadname") and email 
to their new name and email without revealing the old info in the 
mailmap config itself.

For example, consider a user who changed their name from Jane Doe to 
John Doe, and their email from to John wants to prevent others from learning their 
old name, but sometimes it's not feasible to rewrite the entire history 
of the repository (e.g. because there are thousands of commits, or 
because this would mess up references between commits). In this case, 
mailmap seems like a good way to prevent people from finding out the old 
name by accident: Just add the line `John Doe <> 
<>` to the mailmap config. However, this has the 
unfortunate effect that readers may now accidentally find John's old 
name if they look at the mailmap config.

I suggest that mailmap config files support wildcards in the email 
address. This helps people who have changed their name to specify a 
mapping without revealing their old name in the definition of this 
mapping. Because the * symbol is valid in an email address, I suggest 
the sequence \* to be the wildcard symbol, meaning "0 or more symbols". 
This cannot be misinterpreted in an RFC5322-valid email address, because 
this sequence is not legal in the domain part, is not legal in an 
unquoted local part, and is not legal in a quoted local part unless 
preceded by an unescaped backslash (that is, "jo\\*hn" does not 
contain a wildcard). In short, if mailmap encounters the sequence \* in 
an email address, it should interpret the sequence as a wildcard if and 
only if it is not directly preceded by an odd number of backslashes 
regardless of whether the local part is quoted (so \* is a wildcard, \\* 
is not, \\\* is, \\\\* is not).

Now, John can now add the following line to their mailmap config: `John 
Doe <> <\*>`, which does not reveal 
their old name. Someone could always spend more effort to uncover the 
name using more advanced tools, but the point of this feature is to 
prevent accidental discovery of the name in cases where completely 
hiding the name is not feasible.

If you have feedback or comments on this suggestion, please let me know.

- Florine

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-09-26  9:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 21:53 Wildcards in mailmap to hide transgender people's deadnames Florine W. Dekker
2022-09-14  7:40 ` René Scharfe
2022-09-14  9:07   ` Florine W. Dekker
2022-09-19 11:20     ` Ævar Arnfjörð Bjarmason
2022-09-19 12:27       ` rsbecker
2022-09-19 15:19       ` brian m. carlson
2022-09-19 16:31         ` Junio C Hamano
2022-09-19 17:26           ` brian m. carlson
2022-09-20 10:23         ` Ævar Arnfjörð Bjarmason
2022-09-20 14:58           ` Florine W. Dekker
2022-09-21 16:42           ` Junio C Hamano
2022-09-26  9:14             ` Ævar Arnfjörð Bjarmason
     [not found]   ` <>
2022-09-16 16:59     ` Florine W. Dekker
2022-09-20  0:32       ` brian m. carlson

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).