MCPcopy Create free account
hub / github.com/M66B/FairEmail / getKey

Method getKey

app/src/main/java/eu/faircode/email/ContactInfo.java:1079–1085  ·  view source on GitHub ↗
(String email)

Source from the content-addressed store, hash-verified

1077 }
1078
1079 static String getKey(String email) {
1080 // Maximum file name length: 255
1081 // Maximum email address length: 320 (<local part = 64> @ <domain part = 255>)
1082 return (email.length() > 255
1083 ? email.substring(0, 255)
1084 : email).toLowerCase(Locale.ROOT);
1085 }
1086
1087 static Uri getLookupUri(List<Address> addresses) {
1088 return getLookupUri(addresses.toArray(new Address[0]));

Callers 2

_getMethod · 0.95
getEmailLookupMethod · 0.95

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected