recreated the pull request I did in #341 to fix #340. This version should also be fine with ruby 1.8.7 - if not, please adjust.
fix mail reading: don't raise invalid byte sequence in UTF-8 when rea…
…ding non-UTF-8 emails
+1 for this.
Other mail clients(not based on ruby mail) like gmail displays such letters without telling that something is wrong. We should do the same.
👍 to merge it.
+1 to merge please =)
Thanks, looks good. Merged.
This changes the encoding of its argument unexpectedly. Compare with value = value.dup.force_encoding('binary') or value = value.encode('binary')
value = value.dup.force_encoding('binary')
value = value.encode('binary')