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
Japanese encoding 7-bit iso-2022-jp is processed incorrectly #2498
Comments
Konnichiwa @lsergei - could you please provide a complete example mail that we then can use for our test suite? That would help a lot. Thanks! |
Konnichiwa @thorsteneckel, thank you for the fast response. How you'd like me to forward you a problematic message? Just forwarding it might (and most likely will) replace headers |
Usually the mail program has an option to save a raw mail to |
@thorsteneckel thank you for the explanation. Please see the message enclosed. |
Domo arigato! |
So the root cause of this issue is that the dependency we're using for parsing mails does not support ISO 2022 JP encoded mails. There is an additional gem that brings that support to older versions but is not compatible with the (latest) version we're using. |
Can we please re-evaluate if there possibly is a working solution by now? |
There have been no relevant changes in the mail gem and my last comment is therefore (unfortunately) still valid. |
Mantas, can you please have a look if there's maybe a solution to work around this without hacking over 7 year old hacked gems? Maybe a conversion would be possible before or so. |
Hi @lsergei - the great @mantas found a workaround for the mail gem issue so that we can handle it in our code instead. A sustainable solution in the gem itself would be much nicer but a huge task we can't accomplish right now. However, feel free to test it in the upcoming Zammad 3.4 release in about 2 weeks. |
Hi @thorsteneckel and @mantas - thank you, appreciate your efforts! Will test and give you feedback. Looking forward to new release |
Hi. I'm new at zammad. |
@hiromayu Would it be possible to receive an original eml file of a email with above encodings that still does fail within Zammad 3.6? You can send this eml to Thank you. |
Hi MrGeneration. I send eml file to support . |
@hiromayu @MrGeneration this problem is not fixed yet indeed. I kind of gave up (have someone to fix those emails manually) |
Hello. Thank you All. |
@hiromayu thank you for the update! May I know how you applied the patch? Just installed the gem as described in github article? |
I forgot to tell that I could not distinguish the reason that fixing this problem. |
Thank you @hiromayu . Just installed the gem but supposedly just install wouldn't fix the issue. May I know what did you change in server.so? |
I'm sorry. I didn't do anything to server.so. I just install that patch and update zammad server introduced by ubuntu updater. |
@hiromayu わかりました。I did the same thing and will monitor if the problem is gone. どもありがとう! |
Just an important side note: Keep in mind that this action is not update safe. However, all bugs that are appearing because of this no longer validate for bug fixing. |
@MrGeneration from what @hiromayu suggested it is actually update safe since there is no code modification. Perhaps closing the ticket is too early, but for today I have no issues after installing said gem. |
You did change the enviroment. |
Hey there! To provide some technical background: Installing a gem has no effect on its own. It won't get loaded without further action/code changes. Therefore I'd suggest to remove the installed gem again to restore a vanilla environment. I suspect that the provided fix of #3096 created 7 days ago resolved your issue @hiromayu 🤔 |
Thank you for all. So, update of Zammad was the reason that fix this problem. |
Hello. I got another example of this problem. |
Please create a new issue. |
Infos:
Expected behavior:
Normal processing of all japanese language email messages.
Actual behavior:
While processing email messages encoded with 7-bi iso-2022-jp charset, message is decoded incorrectly.
Assuming issue with mail parser.
Other encoding/charset combinations seem to be working just fine.
Steps to reproduce the behavior:
Send email to mailbox connected to Zammad queue in 7bit/iso-2022-jp
As already explained, combination of 7-bit encoding and iso-2022-jp charset in email message results in garbled text in corresponding ticket.
For example, below is plaintext of email:
email client will show it as properly formatted HTML message:
This is how Zammad will show the ticket body:
The text was updated successfully, but these errors were encountered: