From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Jian via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56906: 28.1; attachment names containing Chinese characters are handled wrong by default Date: Thu, 04 Aug 2022 14:48:04 +0800 Message-ID: <874jysa3dq.fsf@linj.tech> References: <871qtydnqi.fsf@linj.tech> <87pmhgse25.fsf@gnus.org> Reply-To: Lin Jian Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29549"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56906@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 04 11:18:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJWzl-0007WT-MY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 11:18:21 +0200 Original-Received: from localhost ([::1]:59112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJWzk-0002UO-DH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Aug 2022 05:18:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJWyU-0002S4-7u for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJWyT-0003xl-UP for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJWyT-0004lN-Pg for bug-gnu-emacs@gnu.org; Thu, 04 Aug 2022 05:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lin Jian Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Aug 2022 09:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56906-submit@debbugs.gnu.org id=B56906.165960457118231 (code B ref 56906); Thu, 04 Aug 2022 09:17:01 +0000 Original-Received: (at 56906) by debbugs.gnu.org; 4 Aug 2022 09:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:51220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJWxe-0004jx-JR for submit@debbugs.gnu.org; Thu, 04 Aug 2022 05:16:11 -0400 Original-Received: from mail.linj.tech ([135.181.90.34]:45706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJV2M-0003D1-Gj for 56906@debbugs.gnu.org; Thu, 04 Aug 2022 03:12:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linj.tech; s=mail; t=1659597172; bh=f7GsuUdHGHIsuZ9oKnAPRWBIrbPK8x/4uTBQkX5c4cw=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=PK3YQ8vAK1H/qSxN9MIoGwNajLW+f6krOJHwJ/0Ush4l49w1347tAFI5AvHCDtoZw W8Gvvf/GCXV59Lb3NnboXWJaUx1Gy7J/DkhcJq5+V/5VERPSgqJdtTRzram7IRyCC0 7KHaLmdIl66UWyz1OPcsS+c9nYz68Qp4hUjD79iOsi7yS+pDHZzKgkFFdfbBDNXO1Y 2JQdSuIWkvVD2QgqNlPCqc0IRoJF0ZPr/VdPE32jGVAdKWzQ/bGRSiKV3YK6BX0zij z5U9wDYjGKmqW0vGbu7elIagRkrC38RNxceS0Qhs9DaG0RZHOIiUMZJoTZPtPg9oIF jqtMUXmU2v0fg== In-reply-to: <87pmhgse25.fsf@gnus.org> X-Mailman-Approved-At: Thu, 04 Aug 2022 05:16:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238707 Archived-At: Lars Ingebrigtsen writes: > I'm unable to reproduce this. I am willing to help you to reproduce this issue. Feel free to ask me for information you need. > It looks to me like something has double-encoded the header, so probably > an SMTP server somewhere that's mishandling the mail? I don't think it has something to do with SMTP server because I can see the double-encoded header locally before sending an email if I add some "print" command around message-encode-message-body and mail-encode-encoded-word-buffer in message-send-mail like: (message "debug1: before message-encode-message-body\n%s" (buffer-string)) (message-encode-message-body) (message "debug1: after message-encode-message-body\n% (buffer-string)) (message "debug2: before mail-encode-encoded-word-buffer\n%s" (buffer-string)) (mail-encode-encoded-word-buffer) (message "debug2: after mail-encode-encoded-word-buffer\n%s" (buffer-string))) In the *Message* buffer, after "debug1: after message-encode-message-body", I can see: Content-Disposition: attachment; filename="=?utf-8?B?5rWL6K+VMTIzYWJjLnRhcg==?=" and after "debug2: after mail-encode-encoded-word-buffer", I can see Content-Disposition: attachment; =?us-ascii?Q?filename=3D=22=3D=3Futf-8=3FB=3F5rWL6K+VMTIzYWJjLnRhcg=3D=3D?= =?us-ascii?Q?=3F=3D=22?=