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

charset disappears in Message class for multipart #1183

Closed
dragosmiron opened this issue Dec 13, 2017 · 9 comments
Closed

charset disappears in Message class for multipart #1183

dragosmiron opened this issue Dec 13, 2017 · 9 comments

Comments

@dragosmiron
Copy link

Hi, there is this line in 2.6 stable that disappeared in 2.7 and there are errors because of it
https://github.com/mikel/mail/blob/2-6-stable/lib/mail/message.rb#L2074

Basically, when adding parts to message, say text and html, the first will succeed, because it takes the charset from message, but then add_boundary makes the def charset method return nil for next call.
Second part will get a nil charset, that results in an error when trying to call the encoded method.
It took me a quite a while to debug actionmailer + mail gem for this.
Any reason why the line I pointed out disappeared? It works when i added it back.

@jeremy
Copy link
Collaborator

jeremy commented Dec 13, 2017

Good opportunity to check git blame to see which commit removed it and trace that back to the pull request responsible 👍

@dragosmiron
Copy link
Author

And the resolution is? Does it need to go back?

@dragosmiron
Copy link
Author

i am a bit confused because 2.7 stable also contains it . master doesn't have it, I thought master branch is "the lastest" branch.

@jeremy
Copy link
Collaborator

jeremy commented Dec 14, 2017

The resolution is up to you to discover, @dragosmiron. git blame is how to track it down. You can review the git history to see exactly what happened, by whom, and for what reason.

@ahorek
Copy link
Contributor

ahorek commented Apr 17, 2018

here's the related PR #1145

@jeremy
Copy link
Collaborator

jeremy commented Apr 18, 2018

Thanks @ahorek! Thoughts on this issue @kirikak2?

@kirikak2
Copy link
Contributor

Thanks for reply. I'm considering this issue. Please wait for a few days.

@kirikak2
Copy link
Contributor

kirikak2 commented Jun 5, 2018

@dragosmiron Sorry for late response.
Can you show the sample case to reproduce it?
I tried. but I could not reproduce in my environment.

@jeremy
Copy link
Collaborator

jeremy commented Dec 19, 2018

Reported at #1299 and fixed by #1300.

@jeremy jeremy closed this as completed Dec 19, 2018
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

4 participants