Skip to content

Commit d1d3680

Browse files
committed
EWS: X400: Can be upper case
1 parent a9e9c4e commit d1d3680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/logic/Mail/EWS/EWSEMail.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function setPersons(targetList: ArrayColl<PersonUID>, mailboxes: any): void {
279279
* @throws when not valid
280280
*/
281281
export function getEmailAddressOrX400(emailAddress: string): string {
282-
if (emailAddress.startsWith("/o=")) {
282+
if (emailAddress.toLowerCase().startsWith("/o=")) {
283283
return convertX400ToEmailAddress(emailAddress);
284284
}
285285
return sanitize.emailAddress(emailAddress);
@@ -295,7 +295,7 @@ export function getEmailAddressOrX400(emailAddress: string): string {
295295
* @returns pseudo email address
296296
*/
297297
export function convertX400ToEmailAddress(x400: string): string {
298-
let parts = x400.split("/");
298+
let parts = x400.toLowerCase().split("/");
299299
let username = "user";
300300
let domain = "xfourhundred";
301301
for (let part of parts) {

0 commit comments

Comments
 (0)