ovh / cds

Enterprise-Grade Continuous Delivery & DevOps Automation Open Source Platform
https://ovh.github.io/cds/
BSD 3-Clause "New" or "Revised" License
4.55k stars 419 forks source link

Mail notification and UTF-8 "Title" #5351

Closed maxatome closed 3 years ago

maxatome commented 4 years ago

If an email notification is created with a Title containing UTF-8 chars, like:

[release 🚀] {{.git.message}}

the encoding is not declared in the Subject header, so the mail reader can not render it correctly:

[release 🚀] …

To avoid doing it by ourselves:

=?UTF-8?Q?[release =f0=9f=9a=80]?= {{.git.message}}

Shouldn't the mail subject be automatically encoded using RFC 2047 if an UTF-8 character is detected?

yesnault commented 3 years ago

reopened cf. https://github.com/ovh/cds/pull/5464#pullrequestreview-500627988

on Thunderbird:

Capture d’écran 2020-10-02 à 16 13 07