Bug: Failed to initialize the mailbox: [xxx@xxx.xx](mailto:xxx@xxx.xx). Reason: The input exceeds the allowed length
Closed this issue · 1 comments
jbostoen commented
When an e-mail contains a similar header, it may crash the background task:
Failed to initialize the mailbox: [xxx@xxx.xx](mailto:xxx@xxx.xx). Reason: The input exceeds the allowed length
Cc: "IMCEAEX-_o=ExchangeLabs_ou=Exchange+20Administrative+20Group+20+123_cn=Recipients_cn=user123@EURPRD10.PROD.OUTLOOK.COM"
<IMCEAEX-_o=ExchangeLabs_ou=Exchange+20Administrative+20Group+20+123_cn=Recipients_cn=user123@EURPRD10.PROD.OUTLOOK.COM>
Seems to come from laminas/laminas-mail#64
https://github.com/laminas/laminas-mail/blob/edf3832c05165775589af2fc698b5f9984d4c5f1/test/AddressListTest.php#L160
https://github.com/Combodo/iTop/blob/57c36d0e51cc57f06ef55c7ec56cb5c7a8fca225/lib/laminas/laminas-validator/src/EmailAddress.php#L55
jbostoen commented
Basically the solution is to ignore this e-mail, but make sure it doesn't crash anything.