[openstreetmap/openstreetmap-website] unable to reply to messages - "unparsable header" (#1708)
Martin Edenhofer
notifications at github.com
Mon Jan 29 21:39:46 UTC 2018
> hmm, can you please send me two messages - one with, one without non-ascii chars ?
Attached two simple mails. You can verify it via rails console (call mail gem directly
[examples.zip](https://github.com/openstreetmap/openstreetmap-website/files/1675345/examples.zip))
```
> Mail.new(IO.binread('path/to/mail-with-umlaut.eml'))
WARNING: Ignoring unparsable header "From marc.smith at example.com Mon May 7 07:45:48 2012\nFrom: marc.smith at example.com (Marc Smith)\nTo: <support at example.com>\nSubject: Re: XXXX Betatest Ticket Templates [Ticket#11162]\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-Transfer-Encoding: 8bit\n\nAm 07.05.2012 08:10, schrieb:\n> Hallo Marc,\n>\n> Here an Umlaut is comming \"\xC3\xBC\". :-D": invalid header name syntax: "From marc.smith at example.com Mon May 7 07"
=> #<Mail::Message:70344875104420, Multipart: false, Headers: >
```
Without it's working fine:
```
> Mail.new(IO.binread('path/to/mail-without-umlaut.eml'))
=> #<Mail::Message:70344865634620, Multipart: false, Headers: <From: marc.smith at example.com (Marc Smith)>, <To: <support at example.com>>, <Subject: Re: XXXX Betatest Ticket Templates [Ticket#11162]>, <Content-Type: text/plain; charset=UTF-8; format=flowed>, <Content-Transfer-Encoding: 8bit>>
```
If you downgrade mail gem 2.6.6 it's working fine.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1708#issuecomment-361395704
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180129/9c09ae73/attachment.html>
More information about the rails-dev
mailing list