Bug 7634

Summary: Changelog & updates mails should use utf-8 charset, not iso-8859-1 (and include appropriate header)
Product: Infrastructure Reporter: Olav Vitters <olav>
Component: BuildSystemAssignee: Sysadmin Team <sysadmin-bugs>
Status: NEW --- QA Contact:
Severity: minor    
Priority: Normal CC: mageia, mageia, sysadmin-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: http://gitweb.mageia.org/software/build-system/mga-youri-submit/tree/lib/Youri/Submit/Action/Mail.pm
Whiteboard:
Source RPM: CVE:
Status comment:

Description Olav Vitters 2012-09-30 13:27:15 CEST
Description of problem:
I just imported hitori. I used the spec file from Fedora.

In the description Fedora used the following UTF-8 character: Ã. This looks like an 'x' but is actually different. It is a mathematics characters (10x10 => 10Ã10).

You can enter this character by e.g.: <compose key>, <x>, <x>

The changelog mailing list has the following header:
Content-Type: text/plain; charset="iso-8859-1"

This results in the email being rendered incorrectly. Spec files should be utf-8, so the header should contain:
Content-Type: text/plain; charset="utf-8"
Olivier Blin 2012-10-20 14:22:02 CEST

CC: (none) => mageia
Summary: changelog mails are utf-8 charset, not iso-8859-1 => changelog mails should use utf-8 charset, not iso-8859-1

Comment 1 Olav Vitters 2015-10-08 10:37:49 CEST
http://gitweb.mageia.org/software/build-system/mga-youri-submit/tree/lib/Youri/Submit/Action/Mail.pm

URL: (none) => http://gitweb.mageia.org/software/build-system/mga-youri-submit/tree/lib/Youri/Submit/Action/Mail.pm

Comment 2 Colin Guthrie 2016-03-07 13:07:05 CET
This also applies to (security) updates notifications as pointed out by Jake from LWN who let us know the following after the "MGASA-2016-0093: Updated openssl packages fix security vulnerabilities" announcement email was sent:

FYI, this email does not have a Content-Type header, but has
Latin1-encoded data (the ä in Käsper) ... this makes automated
ingestion difficult ... our program guesses UTF8 and barfs ... we
could, I suppose, try again with Latin1, but it would be best if your
system just told us what it was sending ...

CC: (none) => mageia
Summary: changelog mails should use utf-8 charset, not iso-8859-1 => Changelog & updates mails should use utf-8 charset, not iso-8859-1 (and include appropriate header)

Comment 3 Colin Guthrie 2016-03-08 10:24:03 CET
This can cause actual mail delivery failures too. Before this fix meant that the mail was malformed and contained no subject and other nice things...

http://svnweb.mageia.org/advisories/17737.adv?r1=4327&r2=4330