mikeal / daily

What’s happening in Open Source. Everyday 🤓
https://mailchi.mp/64c44c3f69d2/oss-daily
263 stars 6 forks source link

Fails to render in gmail. #5

Open creationix opened 4 years ago

creationix commented 4 years ago

For some reason, I and others always get blank emails in gmail.

This is on my android phone using the gmail app:

image

And this is on windows using the gmail website:

image

I downloaded the original email text from the web version and opened it in outlook and it renders there:

image

I'm not sure what's causing the problem. The text version seems to use some extended characters for the table, but escaped in what I assume is quoted-printable.

Content-Type: multipart/alternative; boundary="_----------=_MCPart_1872001842"
MIME-Version: 1.0

--_----------=_MCPart_1872001842
Content-Type: text/plain; charset="utf-8"; format="fixed"
Content-Transfer-Encoding: quoted-printable
** Thu Feb 06 2020
------------------------------------------------------------

Across all of GitHub 74,764 users stared 66,524 repositories.

=F0=9F=93=83                                                               =
                    =F0=9F=93=86 =F0=9F=93=83
=E2=AD=90=EF=B8=8F2210(+371%)
=F0=9F=94=80392 Not Code
3 days old 2019ncovmemory/nCovMemory (https://gmail.us4.list-manage.com/tra=
ck/click?u=3D77be6fb5d528d8b6d40f8f2a3&id=3D121f826df4&e=3Dd7261b3b72)
2020=E6=96=B0=E5=86=A0=E8=82=BA=E7=82=8E=E8=AE=B0=E5=BF=86=EF=BC=9A=E4=BC=
=A0=E5=AA=92=E6=8A=A5=E9=81=93=E4=B8=8E=E9=9D=9E=E8=99=9A=E6=9E=84=E5=86=99=
=E4=BD=9C=EF=BC=88=E6=8C=81=E7=BB=AD=E6=9B=B4=E6=96=B0=EF=BC=89Memory of 20=
20 nCov: Media reports and Non-fiction Writings (Continuously updating)
=E2=AD=90=EF=B8=8F260(+33%)

The whole raw email is here. https://gist.github.com/creationix/ab1660a54a8b21d5bbdb9a76efa361a3

ghost commented 4 years ago

200kb of base64-encoded fonts would be my first guess

mikeal commented 4 years ago

@dym-sh removed that, switched to Courier New, same problem though :(

https://github.com/mikeal/daily/commit/2b2f03e744db8f3614d11ae51822ee8ef08159d7

ghost commented 4 years ago

oh, ok even gmail on desktop:

Screenshot 2020-02-07 Open Source -  Gmail

too many tables???

mayb make one big table insted, idunno

edit: also adding fixed width, like 600 might help