-
Notifications
You must be signed in to change notification settings - Fork 570
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
Set correct utf-8 email subject header (RFC1342) #6369
Conversation
Since this may affect *BSD, Gentoo and more, I have added team reviewers. Linux is probably tested already. |
@prometheanfire @larsengels @mjbrooks an update please :) |
I haven't seen anything about this. Here's my neomutt output with headers.
|
it looks like the gmail client on my phone shows the same thing though (pixel, android 9, oct 5 security update). |
Looks like the header for subject wasn't set as follows. (doesn't seem like it) https://ncona.com/2011/06/using-utf-8-characters-on-an-e-mail-subject/ |
@dgoetz Can you please me out on this please? :) |
I had a similar problem with a user using outlook and exchange getting message as winmail.dat instead of the body. My solution was to add @islander Can you test this option if it solves your use case, too? |
I haven't tested it, but on FreeBSD the port would need a new dependency on converters/base64 to encode the subject. No problem but I have to remember to add it if the patch gets accepted: :) |
I'm using Debian 9.5 (Stretch), there is no such option:
I can install
Then notification mail comes with correctly encoded subject headers. But I'm not sure if these customizations won't affect other parts of Debian ( |
Does bsd-mailx work with |
This option only adds charset header, but not makes base64-encoding of subject text (see RFC1342), so it's not working. Btw, correct syntax is |
The attached mail-host-noficiation.sh script breaks amusingly on Centos 7. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you would like to merge the fix from #7184 again, which is already in master…
Sorry, I got tricked by looking only to the second commit.
Thanks for your work 👍 |
Fix email notification subject header, according to RFC1342.
When using UTF-8 charset in Host or Services names, some mail clients can't correctly display notification e-mail headers (see question marks on screenshot). So we encode Subject header according to RFC1342.