Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add task via email which has non-ascii chars #240

Open
delphinus opened this issue Jun 23, 2016 · 3 comments
Open

Can't add task via email which has non-ascii chars #240

delphinus opened this issue Jun 23, 2016 · 3 comments
Labels

Comments

@delphinus
Copy link

Succeessful. This mail below have created task that contains A.

Received: from 12345
    named unknown
    by gmailapi.google.com
    with HTTPREST;
    Thu, 23 Jun 2016 08:09:06 -0400
Date: Thu, 23 Jun 2016 08:09:06 -0400
From: [email protected]
To: [email protected]
Message-Id: <CADpVkObSobzE=vpKcsouJdA2kputqi=EHdXX+dPWutxADfD-zQ@mail.gmail.com>
X-Mailer: Airmail (367)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="576bd161_ba2aee7_a7b9"

--576bd161_ba2aee7_a7b9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

A

--576bd161_ba2aee7_a7b9
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html><head><style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</=
style></head><body style=3D=22word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;=22><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color: r=
gba(0,0,0,1.0); margin: 0px; line-height: auto;=22>A</div><div id=3D=22bl=
oop=5Fsign=5F1466683724490285824=22 class=3D=22bloop=5Fsign=22><div class=
=3D=22bloop=5Foriginal=5Fhtml=22>


</div><div class=3D=22bloop=5Fmarkdown=22><p></p></div></div></body></htm=
l>
--576bd161_ba2aee7_a7b9--

Failed. This mail has contents a Japanese Character U+3042.

Received: from 12345
    named unknown
    by gmailapi.google.com
    with HTTPREST;
    Thu, 23 Jun 2016 08:09:30 -0400
Date: Thu, 23 Jun 2016 08:09:30 -0400
From: [email protected]
To: [email protected]
Message-Id: <CADpVkOZxF9X5xoXE8zCv8CVdFfLvpSQhOwTX6EU8-ZUzZPNwmA@mail.gmail.com>
X-Mailer: Airmail (367)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="576bd179_18a892d5_a7b9"

--576bd179_18a892d5_a7b9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=E3=81=82

--576bd179_18a892d5_a7b9
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html><head><style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</=
style></head><body style=3D=22word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;=22><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color: r=
gba(0,0,0,1.0); margin: 0px; line-height: auto;=22>=E3=81=82</div><div id=
=3D=22bloop=5Fsign=5F1466683757734444032=22 class=3D=22bloop=5Fsign=22><d=
iv class=3D=22bloop=5Foriginal=5Fhtml=22>


</div><div class=3D=22bloop=5Fmarkdown=22><p></p></div></div></body></htm=
l>
--576bd179_18a892d5_a7b9--

I think Content-Transfer-Encoding: quoted-printable is the matter, isn't it?

@coddingtonbear
Copy link
Owner

Ooo; thanks for reporting this -- I'll have to look into this this weekend. To help me find any error reports associated with this problem, could you let me know (over e-mail, if you'd like) what e-mail address you're using to access Inthe.AM?

@coddingtonbear
Copy link
Owner

Hrm, this is going to be a little more complicated than I had anticipated; I'll have to re-think the way I'm processing incoming mail in order to make it a little more unicode-safe. It'll be a few days before I have time to look into this, but rest assured, I'm thinking about it.

@delphinus
Copy link
Author

Thx! I have made a gmail account for test, and tried to mail the same content. The failed mail source without masking is below. I hope this helps you.

Received: from 1058052472880
    named unknown
    by gmailapi.google.com
    with HTTPREST;
    Fri, 24 Jun 2016 06:04:38 -0700
Date: Fri, 24 Jun 2016 06:04:38 -0700
From: =?utf-8?Q?=E5=A7=93=E5=90=8D?= <[email protected]>
To: [email protected]
Message-Id: <CACGPJ_+hNGxnJgBdhxxBp1nT=fQ4fUF_D3F9xxZndeJm1n0Obg@mail.gmail.com>
X-Mailer: Airmail (367)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="576d2fe7_2044e951_a7b9"

--576d2fe7_2044e951_a7b9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=E3=81=82
--576d2fe7_2044e951_a7b9
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html><head><style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</=
style></head><body style=3D=22word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;=22><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color: r=
gba(0,0,0,1.0); margin: 0px; line-height: auto;=22>=E3=81=82</div></body>=
</html>
--576d2fe7_2044e951_a7b9--

@coddingtonbear coddingtonbear removed their assignment Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants