-
Notifications
You must be signed in to change notification settings - Fork 47
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: Filter and Forward Mail/Procmail Mail Filter #37
Comments
Seems like a unicode / character set issue. Which language and character set do you have selected in webmin? |
Always UTF-8. |
I'm talking about Usermin. |
Just tested this with Usermin in One warning though - in practice this probably wouldn't work anyway, as email headers can only be in ASCII without some special encoding (that procmail won't match on). |
No, Jamie, you misunderstood. It's displayed correctly in Filter and Forward Mail but in Procmail Mail Filter it's not displayed correctly after adding a rule in Filter and Forward Mail. To reproduce it add it in Filter and Forward Mail, then go to Procmail Mail Filter and you will see abracadabra.
In case it's still true and Procmail can't do it, we need to inform a user with an error, explaining it, not just failing silently. I will test it more and share results. It's hard to believe that it wouldn't work with unicode headers in 2018. |
Ok, I see the cause of this now, and will fix it in the next release. The real issue is that the string written to .procmailrc has a bunch of extra un-necessary backslashes in it. I'm still not sure if putting unicode in .procmailrc will work though. You should try it out on some real emails by editing .procmailrc directly. For example, here's the Subject: header from a chinese spam message I received recently :
|
Okay, correct. It doesn't work with non-Lating alphabet. Jamie, could you test the input data for header and in case it contains non-Latin chars, could you automatically add conversion, so
would become:
That isn't hard to do? |
That should be possible, although I can see it getting complex if the user enters a regexp that involves unicode characters. |
Maybe just starting from the simple part would be enough, usually having just a string is fine. In case you can't make it for regexp you could return the message, something like |
Jamie, there is a bug for non English users.
How to reproduce:
At first all looks fine but if you go to Procmail Filter than you will see broken chars, which doesn't seem to work either, example:
If I manually edit them in Procmail Mail Filter and hit save, then they are both displayed correctly in both modules.
Could you fix that?
The text was updated successfully, but these errors were encountered: