rgrove/larch

hande unescaped special characters in mail envelope

Closed this issue · 2 comments

Hi,

due to a broken imap server I get exceptions fetching some mails, because their envelope contains e.g. unescaped double quotes. could one handle that with larch/ruby? At least some detection if there's a wrong formatted mail would be nice, but I cannot imagine how to do that?

regards,
Henning

Larch itself doesn't parse message envelopes; that happens in Ruby's Net::IMAP library. If the exception is coming from Net::IMAP, then you'll have to either monkeypatch it or file a Ruby bug and hope they fix it in a year or three. Sorry!

Thank's for the info. I had a look how to do it and endet up asking on the ruby-list if anyone has experience on this field ;)
I get at least some 97% migration rate.