report a bug |  advanced search |  statistics |  developer log in/out
Bug #54 Charset Issues in Moderation Announcement Subject
Submitted: 2014-02-10 06:13 UTC Modified: 2014-02-12 14:41 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: debian at timoboettcher dot name Assigned: maintainer at mlmmj dot org
Status: Closed
Mlmmj Version: 1.2.18.0 OS: Debian GNU/Linux
MTA: Exim MTA Version: 4.72
 [2014-02-10 06:13 UTC] debian at timoboettcher dot name
Description:
------------
Sending an e-mail to a moderated mailinglist results in e-mails being sent to the moderators of this mailinglist asking for moderation of the mail.

In the e-mail sent to the moderators (moderate-post template), the subject of the original mail is inserted in different places. These suffer from an encoding problem. Both the atteached e-mail and, if the e-mail is accepted through moderation, the e-mail on the mailinglist do not show this problem.

The header
Subject: A =?ISO-8859-15?Q?=FC_A?=
leads to a broken encoding of the u-umlaut and the truncation of the header after that character.

Test script:
---------------
Subject: A =?ISO-8859-15?Q?=FC_A?=

You can use swaks to send a mail that triggers the problem using this commandline (you need to customize it for your mail-setup, of course):
swaks --to moderatedmailinglist@example.com --header "Subject: A =?ISO-8859-15?Q?=FC_A?="

Expected result:
----------------
The Subject should be "A ü A" (this is an u-umlaut between two capital A's) in the places where it is inserted into the moderate-post template, too.

Actual result:
--------------
From: moderatedmailinglist+owner@example.com
Subject:=?utf-8?q?_Please_moderate_moderatedmailinglist=40example.com:_A_=3F=3F=3F_?=
To: moderatedmailinglist-moderators@example.com
X-Original-Subject: A ???
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="=_27f934987f604084499546272417eeb9_="
Content-Transfer-Encoding: 8bit

--=_27f934987f604084499546272417eeb9_=
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Hi, this is the Mlmmj program managing the 
<moderatedmailinglist@example.com> mailing list.

A message from <debian@timoboettcher.name> with subject "A ???" has been submitted
for posting. You are being asked to moderate because the requester is not a
subscriber. The message is below.
[snip]