discourse/lib/email
Claus Strasburger e9bb9a167b Fix reply-by-mail for 8-bit transfer encodings
The mail class seems to handle mails sent with Content-Transfer-Encoding: 8bit
somewhat weirdly: It decodes them (to utf-8), changes the raw source to base64,
and does not modify the Content-Type:charset= header.

This leads to Discourse trying the message encoding (in my example ISO-8859-1)
first, and if that does not contain any unparseable characters, it uses that.
Sadly, in ISO-8859-1, every byte sequence is valid.

Fix this by always trying to decode as UTF-8 first. The probability of someone
using another encoding that cleanly (but wrongly) decodes as UTF-8 should be
fairly low.
2017-04-30 23:30:40 +02:00
..
message_builder.rb FIX: replace site_name in email subject with site title 2017-03-22 23:38:46 +05:30
processor.rb FEATURE: retry processing incoming emails on rate limit 2016-08-08 22:28:27 +02:00
receiver.rb Fix reply-by-mail for 8-bit transfer encodings 2017-04-30 23:30:40 +02:00
renderer.rb FIX: replace polls with a link in emails 2015-10-22 19:10:07 +02:00
sender.rb FEATURE: secure_email site setting to prevent data going out in email 2017-04-26 13:05:56 -04:00
styles.rb FIX: prevent huge custom emojis in emails 2017-01-30 18:06:48 +01:00