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

Fixed charset warning issue with multipart messages #229

Merged
merged 1 commit into from Apr 26, 2011

Conversation

arvindsv
Copy link
Contributor

Hi,

I've added a test for this, got it failing and fixed it.

This issue was discussed by you here as well: http://groups.google.com/group/mail-ruby/browse_thread/thread/27c3bf043087dcda?pli=1

When an add_file was called to add an attachment on a plain (non-multipart) message with UTF-8 characters, the call which was made to create a new "Part" did not copy over the charset of the earlier plain-text message, but instead copied over only the body. Later, it would always show a warning message that the charset had to be detected, even if it was set before.

Caveat: You need to set charset before the first call to add_file.

Thanks,
Arvind

When an add_file was called to add an attachment on a plain
(non-multipart) message, the call which was made to create a new "Part"
did not copy over the charset of the earlier plain-text message, but
instead copied over only the body. Later, it would always show a warning
message that the charset had to be detected, even though it was set
before.

Caveat: You need to set charset before the first call to add_file.
mikel added a commit that referenced this pull request Apr 26, 2011
Fixed charset warning issue with multipart messages
@mikel mikel merged commit 256d3a7 into mikel:master Apr 26, 2011
@mikel
Copy link
Owner

mikel commented Apr 26, 2011

Thank you :)

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

2 participants