Skip to content
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

fix(api): support utf8 in mail subject #5464

Merged
merged 1 commit into from
Oct 1, 2020
Merged

Conversation

fsamin
Copy link
Member

@fsamin fsamin commented Sep 30, 2020

close #5351

Signed-off-by: francois samin [email protected]

close #5351

Signed-off-by: francois  samin <[email protected]>
@ovh ovh deleted a comment from ovh-cds Sep 30, 2020
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@richardlt richardlt merged commit c75fecc into master Oct 1, 2020
headers["Subject"] = subject
} else {
// https://tools.ietf.org/html/rfc2047
headers["Subject"] = "=?UTF-8?Q?" + subject + "?="
Copy link
Member

@maxatome maxatome Oct 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is correct.

See 4.2. The "Q" encoding in https://tools.ietf.org/html/rfc2047, non ascii bytes in subject have to be encoded as =HH.

https://golang.org/pkg/mime/quotedprintable/#NewWriter

@fsamin fsamin deleted the fix/api/mail_utf8 branch October 13, 2020 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mail notification and UTF-8 "Title"
5 participants