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

some escaping issue? #50

Closed
huglester opened this issue May 4, 2015 · 3 comments
Closed

some escaping issue? #50

huglester opened this issue May 4, 2015 · 3 comments

Comments

@huglester
Copy link

Hello again :)

I have spotted one more problem.
For example I get this email to mailhog:

to reset your password, please click <a href=3D"http://sentinel=
.app/change_password/13/2eVJjEic4h5oui6h2lJ8gzl9mdC4qzXQ">this link.</a>.=

it is the source. the soruce itself is the same in both mailcatcher and mailhog, but the HTML rendered in mailhog is currupt.

For example link ir not change_password but change password (without underscore)

Here are the headers from mailhog:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8
Date: Mon, 04 May 2015 09:53:14 +0000
From: CRM <[email protected]>
MIME-Version: 1.0
Message-ID: [email protected]
Received: from sentinel.app by mailhog.example (Go-MailHog)
          id [email protected]; Mon, 04 May 2015 12:53:14 +0300
Return-Path: <[email protected]>
Subject: Reset your account password.
To: [email protected]

Here are the headers from mailcatcher:

Message-ID: <[email protected]>
Date: Mon, 04 May 2015 09:53:40 +0000
Subject: Reset your account password.
From: CRM <[email protected]>
To: [email protected]
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Not sure what else I can post :(

Thanks!

@ian-kent
Copy link
Member

Thanks @huglester - is this is the same as #41? I'll try to reproduce using your message content, haven't been able to so far.

ian-kent added a commit to mailhog/MailHog-UI that referenced this issue May 20, 2015
RFC2047 encoding should only be applied to headers
@ian-kent
Copy link
Member

I think this is fixed now - RFC2047 encoding was replacing a "_" with a " " before decoding, which is correct when applied to headers, but not the message body.

Please reopen if it hasn't been fixed 😄

@huglester
Copy link
Author

Hello,

yes it is fixed now!:)

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

No branches or pull requests

2 participants