Open NegroniBlast opened 4 months ago
these might be relevant but i dont know if these fixes were implemented into 10.0.12 so i decided to open a new issue here https://github.com/glpi-project/glpi/pull/7748 https://github.com/glpi-project/glpi/pull/4844
this is the closest issue I found on the subject https://github.com/glpi-project/glpi/issues/7709
Hi,
Please check if the problem persists in GLPI 10.0.15. If problem persists, please attache the message into .eml
format so we could add it to our test suite and see the results.
Hi Cedric thanks for the quick reply. we upgrade to 10.0.15 and now the gibberish is different haha, still an encoding issue. any recommendations?
Testing after 10.0.15 בדיקה נוספת אחרי מעבר לגרסה חדשה.eml.zip
it was blocking the .eml file so it's attached inside this compressed zip file.
I validate the issue. It sees that the problem is related to usage of iso-8859-8-i
encoding.
*** PHP Warning (2): iconv(): Wrong encoding, conversion from "iso-8859-8-i" to "UTF-8//IGNORE" is not allowed in /var/www/glpi/src/MailCollector.php at line 2470
Backtrace :
src/MailCollector.php:2470 iconv()
src/MailCollector.php:1808 MailCollector->getDecodedContent()
src/MailCollector.php:1150 MailCollector->getBody()
src/MailCollector.php:811 MailCollector->buildTicket()
front/mailcollector.form.php:106 MailCollector->collect()
public/index.php:82 require()
Issue solved.
By editing Mailcollector.php I was able to edit the functions decodeMimeHeader and getDecodedContent to be able to handle Hebrew characters. the decoding function that works for incoming emails from M365 is mb_convert_encoding.
Attaching my code snippets of Mailcollector.php for your consideration. I will test some more next week but you can close this thread if you want.
Could you please open a pull request with your changes? Test suite will run with your changes; and it's easiest for us to review changes.
Code of Conduct
Is there an existing issue for this?
Version
10.0.12
Bug description
I installed GLPI 10.0.12 and after connecting our ticketing office365 tenant mailbox via 0auth, I tried opening tickets via email with Hebrew characters and I get gibberish instead in the subject and the body.
When I open it manually on the platform there's no problem and Hebrew is shown fine.
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?