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

Strange quote rendering in moderator email #220

Open
ForNeVeR opened this issue Jul 12, 2020 · 3 comments
Open

Strange quote rendering in moderator email #220

ForNeVeR opened this issue Jul 12, 2020 · 3 comments

Comments

@ForNeVeR
Copy link
Member

ForNeVeR commented Jul 12, 2020

Today I've received a email with the following body from loglist:

Message-ID: <[REDACTED]>
Subject: LogList Suggested Quote: https://t.me/radio_t_chat/65425
Return-Path: [REDACTED]
X-Yandex-Forward: [REDACTED]

Grigory
 Bakunov, [11.07.2...
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable



<a href=3D"http://loglist.xyz/quote/approve?[REDACTED]=
[REDACTED]">Manage the Suggested Quote</a>
<pre>https://t.me/radio_t_chat/65425

Grigory Bakunov, [11.07.20 22:43]
=D0=BA=D0=B0=D0=BA =D0=B6=D0=B5 =D0=B1=D0=BB=D0=B8=D0=BD =D1=85=D0=BE=D1=80=
=D0=BE=D1=88=D0=BE =D1=81 =D0=B5=D0=BC=D0=B0=D0=BA=D1=81=D0=BE=D0=BC =D0=B2=
=D1=81=D0=B5=D0=B3=D0=B4=D0=B0. =D0=B8=D0=BD=D0=BE=D0=B3=D0=B4=D0=B0 =D0=BF=
=D1=80=D1=8F=D0=BC=D0=BE =D0=BA=D0=B0=D0=BA =D1=81=D0=B5=D0=BA=D1=81</pre>
<pre>(Source: user)</pre>

In my email clients (both Yandex web mail client and Mailspring) it got rendered as this:
image

It obviously tried to send a HTML message, but something was very mangled during the sending. Looks like the (multi-line?) subject was somehow interleaved with the actual message body: probably the subject was meant to be "https://t.me/radio_t_chat/65425 Grigory Bakunov, [11.07.2...", but the mail server has inserted its headers in between the subject lines, so the message structure was completely destroyed, and the headers Content-Type and Content-Transfer-Encoding went to the message body instead of the message header.

The Unicode message text then got broken due to missing Content-* headers.

Probably, it has something to do with the link in the first line of the message? Dunno.

For comparison, here's a non-broken message I've received a while ago:

Message-ID: <[REDACTED]>
Subject: =?UTF-8?Q?LogList_Suggested_Quot?=
 =?UTF-8?Q?e:_=D0=A2=D0=B8=D0=BC=D0=B5=D1=80=D0=BB=D0=B0=D0=BD,_[07.07.20?=
 =?UTF-8?Q?_20:05]=0D=0A=D0=A0=D0=B5?=
 =?UTF-8?Q?=D0=B1=D1=8F=D1=82_=D0=B5=D1=81=D1=82=D1=8C_=D0=B2=D0=BE?=
 =?UTF-8?Q?=D0=BF=D1=80=D0=BE=D1=81.=D0=B7=D0=BD=D0=B0=D1=8E:=0D?=
 =?UTF-8?Q?=0A_=D1=86=D0=B8=D0=BA=D0=BB=D1=8B,...?=
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-Path: [REDACTED]
X-Yandex-Forward: [REDACTED]



<a href=3D"http://loglist.xyz/quote/[REDACTED]=
[REDACTED]">Manage the Suggested Quote</a>
<pre>=D0=A2=D0=B8=D0=BC=D0=B5=D1=80=D0=BB=D0=B0=D0=BD, [07.07.20 20:05]
=D0=A0=D0=B5=D0=B1=D1=8F=D1=82 =D0=B5=D1=81=D1=82=D1=8C =D0=B2=D0=BE=D0=BF=
=D1=80=D0=BE=D1=81.=D0=B7=D0=BD=D0=B0=D1=8E:
 =D1=86=D0=B8=D0=BA=D0=BB=D1=8B,=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D1=8B =
=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA=D1=82=D1=8B,=D1=84=D1=83=D0=BD=D0=BA=D1=86=
=D0=B8=D0=B8,DOM.=D0=B4=D0=BE=D1=81=D1=82=D0=B0=D1=82=D0=BE=D1=87=D0=BD=D0=
=BE =D0=BB=D0=B8 =D0=B7=D0=BD=D0=B0=D0=BD=D0=B8=D0=B9,=D1=87=D1=82=D0=BE=D0=
=B1 =D0=B7=D0=B0=D0=BF=D0=B8=D0=BB=D0=B8=D1=82=D1=8C =D0=BF=D1=80=D0=BE=D1=
=81=D1=82=D0=BE=D0=B9 =D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82?=D0=BC=D0=BE=D0=
=B3=D1=83 =D0=BB=D0=B8 =D1=8F =D1=81=D1=87=D0=B8=D1=82=D0=B0=D1=82=D1=8C=D1=
=81=D1=8F junior js dev?

Igor N, [07.07.20 20:14]
[In reply to =D0=A2=D0=B8=D0=BC=D0=B5=D1=80=D0=BB=D0=B0=D0=BD]
=D0=9D=D0=B0=D0=B7=D0=BD=D0=B0=D1=87=D0=B0=D1=8E =D1=82=D0=B5=D0=B1=D1=8F j=
unior js dev&#x27;=D0=BE=D0=BC. =D0=9C=D0=BE=D0=B6=D0=B5=D1=88=D1=8C =D0=BF=
=D0=B8=D0=BB=D0=B8=D1=82=D1=8C =D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=D0=B9 =
=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82.</pre>
<pre>(Source: user)</pre>
@ForNeVeR
Copy link
Member Author

@rexim, sorry to bother you, but have you, too, received this message in broken form? I wonder if it's something about my email provider or about the loglist itself.

@ForNeVeR
Copy link
Member Author

I am able to replicate this effect on some of the newly posted quotes, but not on any one. Further investigation is required.

@rexim
Copy link
Member

rexim commented Jul 12, 2020

@ForNeVeR yes, I've seen it too. Super weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants