From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21078 invoked from network); 19 Dec 2022 13:59:52 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 19 Dec 2022 13:59:52 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p7GgG-009p3D-V6 for ml@inbox.vuxu.org; Mon, 19 Dec 2022 07:59:48 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1p7GgG-004YmM-25 for ml@inbox.vuxu.org; Mon, 19 Dec 2022 07:59:48 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1p7GgA-004YmD-1j for ding@lists.math.uh.edu; Mon, 19 Dec 2022 07:59:43 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p7Gg7-009p2m-RF for ding@lists.math.uh.edu; Mon, 19 Dec 2022 07:59:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Gt7sSuBqaS+QLjBt+7g31Fw7Xv07RcPzihAEMSwFs3w=; b=A2uTqivgKKPWKiDlu5bWsM0l5M 1wPInIYkSRzuonOlj+ISII98CYu2pf1jDagmgMMsRZuzXkJAfYxXz9JpNuXjm4TfCNwvM09MVYUbQ GTpgrUadRHxg3CcvcEmoFE2rOv1ysupsuIC1Zu8Dc3LUlwCLnCWtrFPY05Nre4kMuvQg=; Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p7Gfy-0002jO-9x for ding@gnus.org; Mon, 19 Dec 2022 14:59:32 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671458366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gt7sSuBqaS+QLjBt+7g31Fw7Xv07RcPzihAEMSwFs3w=; b=BbR5BaT+pbssSvKHEYuywK5cKf4DbjBw5PKxF3TCUUO07hTnwxBeEX1QSN2kJjyjD4kqQZ 0vIEXSDF9v9+5qzbqPtcwG7bzXHQtDbNudGM0qfZKP8RbJaPa18iRoeBnzRKzQJsN91C80 /l8g2EYRTxrAFkWBsTDx2pnrt7lIe+w= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-313-RLEMZ4vXNpGdxa5ZqK4xMQ-1; Mon, 19 Dec 2022 08:59:21 -0500 X-MC-Unique: RLEMZ4vXNpGdxa5ZqK4xMQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 61F693817960; Mon, 19 Dec 2022 13:59:21 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14C862026D4B; Mon, 19 Dec 2022 13:59:19 +0000 (UTC) From: Florian Weimer To: Eli Zaretskii Cc: larsi@gnus.org, eric@ericabrahamsen.net, emacs-devel@gnu.org, ding@gnus.org Subject: Re: master ef14acf: Make nnml handle invalid non-ASCII headers more consistently References: <20210122180801.14756.84264@vcs0.savannah.gnu.org> <20210122180802.F0A1E20A10@vcs0.savannah.gnu.org> <874jtvq8c2.fsf@oldenburg.str.redhat.com> <83k02qiicb.fsf@gnu.org> <87bko26ptd.fsf@oldenburg.str.redhat.com> <83r0wygh9b.fsf@gnu.org> Date: Mon, 19 Dec 2022 14:59:17 +0100 In-Reply-To: <83r0wygh9b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Dec 2022 17:52:00 +0200") Message-ID: <87k02nze8a.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk * Eli Zaretskii: >> From: Florian Weimer >> Cc: Lars Ingebrigtsen , Eric Abrahamsen >> , emacs-devel@gnu.org, ding@gnus.org >> Date: Sat, 17 Dec 2022 15:57:18 +0100 >>=20 >> >> Mail source (maildir :path =E2=80=A6) failed: (error Invalid data for= rfc2047 encoding: =E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Luo) via Elfutils-d= evel ) >> >>=20 >> >> On an older Emacs without this change, it seems that the original hea= der >> >> is written to the .overview file, which sidestep the problem that not >> >> all strings are encodable by the rfc2047 functions. >> > >> > Thanks. I guess this From header is invalid because there's no space >> > between the "=E7=BD=97=E5=8B=87=E5=88=9A" and the "(Yonggang Luo)" par= ts? >>=20 >> Yes, that seems to be what's tripping the encoder. But I'm not sure if >> proper encoding of ( or ) (as =3D28 or =3D29 using the Q encoding, or us= ing >> the B encoding as in the raw text) is actually invalid. RFC 2047 only >> talks about unencoded ( or ). In contrast, encoded ( and ) are valid >> syntax at the RFC 822 layer because encoding hides them. > > I'm not sure this is related. I was talking about the missing SPC > character before the parentheses. But I know very little about this > stuff, so maybe I'm just misunderstanding you. I was responding to =E2=80=9Cthis From header is invalid=E2=80=9D. I'm not= sure if the original message is actually malformed. >> I somehow can't reproduce the original issue. I expect more problematic >> messages to arrive next week, though, and will report then how it goes. > > Thanks. Please do get back, even if you don't succeed in reproducing. As I expected, I could reproduce the issue with new mail. I'm happy to report that replacing nnml--encode-headers with your new version fixes the issue. Going back to older mail, I see that previously the From: header was written in encoded form to .overview (slightly wrapped to avoid SMTP issues): 8523 Re: [PATCH 1/7] Rename 'hello2.spec.' -> 'hello2.spec' 'hello3.spec.' = -> 'hello3.spec' =3D?utf-8?b?572X5YuH5YiaKFlvbmdnYW5nIEx1bykgdmlhIEVsZnV0aW= xzLWRldmVs?=3D Thu, 24 Nov 2022 16:27:56 +0= 800 <20220920084307.1696-1-luoyonggang@gmail.com> <20220920084307.1696-2-luoy= onggang@gmail.com> <20221019194930.GC24703@redh= at.com> <3bf19d05c8976411432709fae1cc2bcc2d21d700.camel@klomp.org> <586fbfd512763e539f0d06e8ffa308da34be5368.camel@wildebeest.org> 705 32 Xr= ef: oldenburg.str.redhat.com lists.sourceware.elfutils-devel:8523 Cc: "Fran= k Ch. Eigler" , elfutils-devel@sourceware.org To: Mark Wie= laard Now it uses unencoded form: 8762 Re: [PATCH v2 13/16] lib: isatty is not available on windows =E7=BD=97= =E5=8B=87=E5=88=9A(Yonggang Luo) via Elfutils-devel Mon, 19 Dec 2022 20:32:48 +0800 <20221217165213.152-1-luoyonggang@gmail.= com> <20221217165213.152-14-luoyonggang@gmail.com> 1074 43 Xref: oldenburg.str= .redhat.com lists.sourceware.elfutils-devel:8762 To: elfutils-devel@sourcew= are.org I assume that there is some protection in place that tabs are not possible here? Thanks, Florian