dokuwiki / dokuwiki

The DokuWiki Open Source Wiki Engine
http://www.dokuwiki.org
GNU General Public License v2.0
4.17k stars 853 forks source link

Email validator is error on a valid email. #3529

Open racquetmaster opened 3 years ago

racquetmaster commented 3 years ago

We are using the bureaucracy plugin to send an email to todoist. When that plugin goes to send an email it is validating the email. Unfortunately, the email is failing validation despite being a valid email.

Todoist uses emails of this form: add.task.16795236.2274189163.MzI2AwrR2xAzYzdmNGJiY8vmnh0OD8XoJsnhUnvyevk (This is not the actual email for security).

Unfortunately, we cannot change that email to make it shorter. I know that the local part should only be 64 characters but systems are encouraged to support longer.

For reference, here is the line of code that does the validation: https://github.com/splitbrain/dokuwiki/blob/41e7ea2518a51a25525cb3f492d8e2c25f5d5272/vendor/aziraphale/email-address-validator/EmailAddressValidator.php#L88

phy25 commented 3 years ago

This should be a change to upstream first: https://github.com/aziraphale/email-address-validator/blob/c311cb63d478c08c8fc9b19110ef62db9b66aa7f/EmailAddressValidator.php#L88

racquetmaster commented 3 years ago

Issue created: https://github.com/aziraphale/email-address-validator/issues/6