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

Support for non-ascii text in email headers #83

Merged
merged 3 commits into from
Aug 19, 2019

Conversation

dmaciejak
Copy link
Contributor

Was trying to import that email sample from https://cdn.online-convert.com/example-file/document/eml/example.eml into GoPhish but the subject is just displayed as "=?UTF-8?Q?_EML Example File?=". The patch is adding UTF-8 support for the subject string.

Was trying to import that email sample from https://cdn.online-convert.com/example-file/document/eml/example.eml into GoPhish but the subject is just displayed as "=?UTF-8?Q?_EML Example File?=". The patch is adding UTF-8 support for the subject string.
@tooolbox
Copy link

@jordan-wright Are you reviewing PRs?

According to RFC2047 non ascii text is also allowed in other fields like From, To, ...
@dmaciejak dmaciejak changed the title Support UTF-8 in email subject Support for non-ascii text in email headers Aug 16, 2019
@dmaciejak
Copy link
Contributor Author

According to RFC2047, not only the subject field can contain non ascii text but also other fields. For example "From: Mrs =?ISO-8859-1?Q?Val=C3=A9rie=20Dupont?= valerie.dupont@example.com"

@jordan-wright
Copy link
Owner

LGTM. Thanks @dmaciejak!

@jordan-wright jordan-wright merged commit 041e0ce into jordan-wright:master Aug 19, 2019
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.

None yet

3 participants