diff --git a/src/mail.js b/src/mail.js index 403598d5d..b81ccb7fb 100644 --- a/src/mail.js +++ b/src/mail.js @@ -163,7 +163,7 @@ function validateDisplayName(name) { if (name.length >= 100) return new BoxError(BoxError.BAD_FIELD, 'mailbox display name too long'); // technically only ":" is disallowed it seems (https://www.rfc-editor.org/rfc/rfc5322#section-2.2) // in https://www.rfc-editor.org/rfc/rfc2822.html, display-name is a "phrase" - if (/["<>)(,;\\@:]/.test(name)) return new BoxError(BoxError.BAD_FIELD, 'mailbox display name is not valid'); + if (/["<>)(;\\@:]/.test(name)) return new BoxError(BoxError.BAD_FIELD, 'mailbox display name is not valid'); return null; }