Skip to content

Commit fb3dde1

Browse files
turt2liverichvdh
authored andcommitted
Merge pull request #3167 from matrix-org/travis/spec/msc2265-lower-3pid
Specify that email handling converts to lowercase first
2 parents d41658e + 53833d4 commit fb3dde1

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that some identifiers may be lowercase prior to processing, as per [MSC2265](https://github.com/matrix-org/matrix-doc/pull/2265).

content/appendices.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,13 @@ Represents E-Mail addresses. The `address` is the raw email address in
772772
`user@domain` form with the domain in lowercase. It must not contain
773773
other text such as real name, angle brackets or a mailto: prefix.
774774

775+
In addition to lowercasing the domain component of an email address,
776+
implementations are expected to lowercase the localpart as described
777+
in [the unicode mapping file](https://www.unicode.org/Public/8.0.0/ucd/CaseFolding.txt)
778+
prior to any processing. For example, `Strauß@Example.com` must be
779+
considered to be `[email protected]` while processing the email
780+
address.
781+
775782
### PSTN Phone numbers
776783

777784
Medium: `msisdn`

data/api/identity/v2_lookup.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ paths:
101101
The addresses to look up. The format of the entries here depend on
102102
the `algorithm` used. Note that queries which have been incorrectly
103103
hashed or formatted will lead to no matches.
104+
105+
Note that addresses are case sensitive: review the
106+
[3PID Types](/appendices#pid-types) to verify the intended case an
107+
identifier should be prior to submission/hashing.
104108
example: [
105109
"4kenr7N9drpCJ4AfalmlGQVsOn3o2RHjkADUpXJWZUc",
106110
"nlo35_T5fzSGZzJApqu8lgIudJvmOQtDaHtr-I4rU7I"

0 commit comments

Comments
 (0)