warmshowers / Warmshowers.org

The code for warmshowers.org. If you'd like to help develop code for Warmshowers.org or if you would like to handle some of the website configuration/sitebuilding tasks in the issue queue, please let me know.
http://www.warmshowers.org
60 stars 22 forks source link

Quoted-printable not handled by mandrill incoming #450

Open rfay opened 9 years ago

rfay commented 9 years ago

We seem to always fail on a quoted-printable message, especially quoted-printable-only.

The failure in the studied case was from privatemsg_reply: "A message must be included in your reply."

Here's an example message that failed: https://www.evernote.com/l/AA9MQogrBdVKv5WGY4By0zIkFrLsK00oFRk

rfay commented 9 years ago

I followed this up with Mandrill, and they replied:

Hi Randy,

Thanks for writing back and providing that info. It looks like in this case, there is an issue with the encoding in the message that was received that is causing the raw message to be unable to be decoded. After some testing, I was able to determine that the source of the issue is the 'ñ' character in the quoted original email that was replied to. At this point its impossible to tell if the encoding was declared incorrectly in the original message, or if it was corrupted during the reply process. For your reference, in the email that was received, that character appears in this section of the message:

para pasar el a=F1o=0D=0A> = nuevo.=0D=0A> =0D=0A> Muchas gracias. Removing the a=F1o and replacing it with a=C3=B1o which is the correctly encoded word for 'año' resolved the issue and allowed our parser to interpret the rest of the message without any additional changes.

Please feel free to write back if you have any further questions.