Page 1 of 1

Reply masking only works in English

PostPosted: Sun Sep 26, 2010 10:04 am
by lwc
Reply masking messes up any non English display name. When not in English, it's:
  1. Not encoded.
  2. Cuts off the last character.
For example, Foobar (if it wasn't in English) comes out like:
Code: Select all
From:  Foobar - real@mail <spamgourmet@mail>
Subject: =?Windows-1255?Q?=E4=F9=ED =F9=EC=E9?=
Content-Type: text/plain;
   charset="Windows-1255


When it's supposed to be something like
Code: Select all
From: "=?Windows-1255?Q?=EC=E9=E0=E5=F8?=" <spamgourmet@mail>

The same thing happens with Unicode (UTF-8).

PostPosted: Tue Oct 05, 2010 9:21 pm
by josh
when I wrote the code, I only ever saw ascii used in email addresses, and it didn't seem to me that mail servers supported utf8 - I may have been right, but I suppose that's changed by now (10 years later). I'll have to look into the best way to support it without creating potential security issues.

Re: Reply masking only works in English

PostPosted: Wed Nov 13, 2013 10:47 am
by lwc
But like I wrote, it's the same with any encoding, not just utf8. You already encode subjects, so all you have to do is do the same with display names (FROM and TO).