Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1240354lfc; Wed, 1 Jun 2022 12:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNRPRzuyQfiuixtQc1vgsrVnhAqkihopHxNkAQsPcc7BSnVMdWNVDvMYQN0BjP7d+jjZmB X-Received: by 2002:a17:90b:180b:b0:1e3:25f6:6475 with SMTP id lw11-20020a17090b180b00b001e325f66475mr13854181pjb.208.1654112808485; Wed, 01 Jun 2022 12:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654112808; cv=none; d=google.com; s=arc-20160816; b=Ebon0P1+SUJvdi33eaXl9zZwp7AZwxCcakY9v2zsscjucJVUT3fJmr+XE+CUyFBOfY DT4SdZ9gjM/qAmhlmE2Avgy5fi3EB2J+pw4lY2sC7kg8zJywszAWVcqhy4Mpf83MdB/X II20I2q7diJw1ZSfaoZV77gwx+e3FYH9lvB+uLE8J5rA6DOvfyoLRq/+dNFHVOSzhdPe ctTVJhJye+gtgxlbOaoFzRR8JznZ52OIkFEhSIYRRsLWedsdmvdfGsreLgkJ+rXTs77r ydcpyEhxN8BLvjewSOhyZ/odPQXR0ldtJhQEnp1SDu12AQ66qJJHv4igBWNWhywyh9YN 6cAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hVmSYDrOaHzonOW62wSgV/Rgfg6D/1+HUcig+SVBKaM=; b=hmpT4OH6Gm1NgIkIa70ZnKK5jOlrfTTdmG6bnNlGP0y4daiQ5GWXZcs//Lc8TW37mB 1FtUaC8hJVp0BEIB0xoYkkAuvtHkmq++joUCaZWXAArRQHtgLfg9qmZ3KgHx/7TeVwPr QCk+O7sHgflgLtg+gBi2hmhCHtI82B+K5AK9twtnf22BGOSR0NFjd1hqwAVYhfR+w4IX WXQGJfJjIyghPegdH1OjK3KXjlx2ij4wHvk3tAXUyKKt/wCoh00BGd7WhhiylYax8Mbv BhKp5XYqMPPXGBtc7shICf2z09IarqKaLBqZl2Y3QjEE+W+X/5BxngD0YC/0HpV/yiAP lZsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v186-20020a6389c3000000b003fa936eedd8si3166434pgd.481.2022.06.01.12.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DC231E4B65; Wed, 1 Jun 2022 12:11:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245004AbiEaUAS (ORCPT + 99 others); Tue, 31 May 2022 16:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346334AbiEaUAQ (ORCPT ); Tue, 31 May 2022 16:00:16 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B30861614 for ; Tue, 31 May 2022 13:00:01 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw81t-0005Co-D1; Tue, 31 May 2022 21:59:49 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nw81r-005hZM-R2; Tue, 31 May 2022 21:59:46 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nw81p-00DN6X-Gl; Tue, 31 May 2022 21:59:45 +0200 Date: Tue, 31 May 2022 21:59:44 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: David Woodhouse Cc: Geert Uytterhoeven , Krzysztof Kozlowski , mark@msapiro.net, workflows@vger.kernel.org, Konstantin Ryabitsev , "linux-arm-kernel@lists.infradead.org" , MTD Maling List , Linux Kernel Mailing List , Arnd Bergmann , Miquel Raynal Subject: Re: Getting rid of infradead.org - corrupted subjects Message-ID: <20220531195944.a4gyevqfxdafo5qa@pengutronix.de> References: <20220525192329.iomxf2imkaymbjc3@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qe7jpan2q2japypi" Content-Disposition: inline In-Reply-To: <20220525192329.iomxf2imkaymbjc3@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qe7jpan2q2japypi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, May 25, 2022 at 09:23:32PM +0200, Uwe Kleine-K=F6nig wrote: > On Wed, May 25, 2022 at 10:55:18AM +0100, David Woodhouse wrote: > > On Wed, 2022-05-25 at 10:34 +0200, Geert Uytterhoeven wrote: > > > CC dwmw2 > >=20 > > Thanks, Geert. > >=20 > > > On Wed, May 25, 2022 at 10:07 AM Krzysztof Kozlowski > > > wrote: > > >=20 > > > > The address list is semi-random as I don't know whom to approach. > > > > Problem: infradead.org corrupts email subjects by changing: > > > > s/,/, / > >=20 > > I found an old thread on mailman-users which appears to be claiming > > that it's just standard folding as described in RFC2822 =A72.2.3. > >=20 > > https://mail.python.org/pipermail/mailman-users/2007-May/057119.html > >=20 > > 2.2.3. Long Header Fields > >=20 > > Each header field is logically a single line of characters comprising > > the field name, the colon, and the field body. For convenience > > however, and to deal with the 998/78 character limitations per line, > > the field body portion of a header field can be split into a multiple > > line representation; this is called "folding". The general rule is > > that wherever this standard allows for folding white space (not > > simply WSP characters), a CRLF may be inserted before any WSP. For > > example, the header field: > >=20 > > Subject: This is a test > >=20 > > can be represented as: > >=20 > > Subject: This > > is a test > >=20 > > But this is folding at a *comma*, not at whitespace. The original > > subject line was (in a single line): > >=20 > > Subject: [PATCH v2] dt-bindings: mtd: jedec,spi-nor: remove unneeded pr= operties > >=20 > > ... and Mailman 'folded' it in the wrong place to: > >=20 > > Subject: [PATCH v2] dt-bindings: mtd: jedec, > > spi-nor: remove unneeded properties > >=20 > > That *isn't* proper folding because it didn't happen at a whitespace. > >=20 > > I do need to upgrade to Mailman 3 at some point; I've been > > procrastinating on the basis that it "ain't broke". For the time being > > I've just disabled folding in MM2 with a trivial hack: > >=20 > > --- Message.py.orig 2022-05-25 02:51:05.917145192 -0700 > > +++ Message.py 2022-05-25 02:50:44.137142069 -0700 > > @@ -49,7 +49,7 @@ class Generator(email.Generator.Generato > > Headers will by default _not_ be folded in attachments. > > """ > > def __init__(self, outfp, mangle_from_=3DTrue, > > - maxheaderlen=3D78, children_maxheaderlen=3D0): > > + maxheaderlen=3D0, children_maxheaderlen=3D0): > > email.Generator.Generator.__init__(self, outfp, > > mangle_from_=3Dmangle_from_, maxheaderlen=3Dmaxheaderl= en) > > self.__children_maxheaderlen =3D children_maxheaderlen >=20 > For the record: Some time ago I debugged that myself, too and found an > equivalent change. So this looks good to me. small supplement: I found the change I did back then: --- /usr/lib/python2.7/email/header.py 2018-09-26 20:42:22.000000000 +02= 00 +++ /usr/lib/python2.7/email/header.py 2018-09-26 20:42:22.000000000 +02= 00 @@ -371,7 +371,7 @@ joiner =3D NL + self._continuation_ws return joiner.join(chunks) - def encode(self, splitchars=3D';, '): + def encode(self, splitchars=3D' '): """Encode a message header into an RFC-compliant format. There are many issues involved in converting a given string for us= e in Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --qe7jpan2q2japypi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmKWc60ACgkQwfwUeK3K 7AnKhggAoZDvxOMPgFG98lTEDsZhLsqy77RVMZ3z0wYiRvpmWgitlGDH10N34LP/ XMJQieRCP6XuM3Q+5PloKEbofm6tyMc0T4I4VI1YbiQq0K9UwO8ku7jiD/rl5WD0 GM8+mt70pRSxQCerqrneBqzXFFg3VWYcGhUAYTyE4pBki6pAMenOa8+5tnZ+XBOY mD0cWW2oxm2npOXbh7dYbOVobwFb1r2jcNFbKD6UKQ/igpRCLCDj3cqJrmTd/XWL XLSOqDW3e3ogLIwXOkp5b35e/fW+yjRFHi7AAZ/a3JTG3FfXJQcH0uotIvvEh58g tAm7v1Mp3UvZR44eH+4oYc5j0CEEZQ== =VGcY -----END PGP SIGNATURE----- --qe7jpan2q2japypi--