-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mail collector failing to import mails from senders with accent in their name #10312
Comments
Hi, Please attach email that causes this issue in eml format, so we could invastigate on it. Regards |
Is there a way to send this to you privately? |
Hello dear! Apparently, I'm experiencing the same problem. I searched in several places but without success. I will also post my Logs here and attach the EML file. I think in my case it refers to the treatment of single quotes and double quotes. ' or '' . files/_log/mailgate.log: EML Header
|
Hi, Unless I miss something, Regards |
You can try to :
If the altered message reproduces the issue, then you could attach it here, and we could use it in our test suite. |
Hi! my 9.5.6 platform is getting same error. The mail connector imports all the emails avoiding those with errors but when the mailbox have 10 of them te mailer do not import any more. Last php-errors.log entry:
Thanks a lot! |
I encounter same bug on a customer installation with GLPi 9.5.6. If it can help, here is some anonymized data. I had to change mail headers from:
By:
|
Hi @felag , Could you please provide an email that causes this issue into eml format ? Regards |
Possibly related to this issue reported in the validator component used by the email library used by GLPI. |
Hello @cedric-anne
I am reluctant to send you such a mail: it comes from a customer of my customer working on health issues, so privacy is a high priority here. :-/ Isn't my extract from above enough to reproduce the bug on your side ? |
I do not know if the header is valid in your case, but, when parsed using PHP native function I opened a bug on PHP side, see php/php-src#7980 . We cannot do anymore on GLPI side. Regards |
Hello @cconard96,
Work-around did not work on test platform, although it goes a little further:
|
Hi, It has been fixed on PHP side and will be available in next PHP bugfix release, see php/php-src@86c196b . I close this as we cannot do much more on GLPI side. Regards |
For information, this bug has been fixed in PHP 8.0.17 and 8.1.4 releases published last week. |
Code of Conduct
Is there an existing issue for this?
Version
GLPI 9.5.6
Bug description
After updating from GLPI 9.4.6 to GLPI 9.5.6, the mail collector fails to import some mails with the following error:
Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: 'company.com>d' is not a valid hostname for the email address in /var/www/glpi-956/vendor/laminas/laminas-mail/src/Address.php at line 78
This seems to impact mails from senders who have an accent in their display name (eg: "Frédéric").
Relevant log output
Page URL
No response
Steps To reproduce
files/_log/php-errors.log
Your GLPI setup information
Setup Information
Anything else?
I can provide the full headers of an affected mail privately, if needed.
The text was updated successfully, but these errors were encountered: