mirror of
https://github.com/mjl-/mox.git
synced 2025-07-16 07:14:40 +03:00
normalize localparts with unicode nfc when parsing
both when parsing our configs, and for incoming on smtp or in messages. so we properly compare things like é and e+accent as equal, and accept the different encodings of that same address.
This commit is contained in:
@ -1009,7 +1009,7 @@
|
||||
},
|
||||
{
|
||||
"Name": "User",
|
||||
"Docs": "Localpart.",
|
||||
"Docs": "Localpart, encoded as string. Must be parsed before using as Localpart.",
|
||||
"Typewords": [
|
||||
"string"
|
||||
]
|
||||
@ -1063,7 +1063,7 @@
|
||||
},
|
||||
{
|
||||
"Name": "Unicode",
|
||||
"Docs": "Name as U-labels. Empty if this is an ASCII-only domain. No trailing dot.",
|
||||
"Docs": "Name as U-labels, in Unicode NFC. Empty if this is an ASCII-only domain. No trailing dot.",
|
||||
"Typewords": [
|
||||
"string"
|
||||
]
|
||||
@ -2817,7 +2817,7 @@
|
||||
},
|
||||
{
|
||||
"Name": "Localpart",
|
||||
"Docs": "Localpart is a decoded local part of an email address, before the \"@\".\nFor quoted strings, values do not hold the double quote or escaping backslashes.\nAn empty string can be a valid localpart.",
|
||||
"Docs": "Localpart is a decoded local part of an email address, before the \"@\".\nFor quoted strings, values do not hold the double quote or escaping backslashes.\nAn empty string can be a valid localpart.\nLocalparts are in Unicode NFC.",
|
||||
"Values": null
|
||||
}
|
||||
],
|
||||
|
Reference in New Issue
Block a user