From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Newsgroups: gmane.emacs.bugs Subject: bug#74624: 29.4.50; Gnus cannot parse some filenames(UTF8) in an attachment Date: Sat, 30 Nov 2024 18:59:25 +0300 Organization: Home Message-ID: <87v7w44srm.fsf@localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28185"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 74624@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 17:00:25 2024 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 1tHPtR-0007At-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 17:00:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHPt8-0004TA-0y; Sat, 30 Nov 2024 11:00:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHPt5-0004R3-Fb for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 11:00:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHPt4-0007BQ-U1 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 11:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=IcwbElCNqngA24+VeR4itnhsY9h9zKgA4q4xbRAJYaY=; b=YxcwXV78P1a3TLs8VcjeaJT3rI3OXZFngPL2uFUwm8uZ4OycOIqpc8BaE8ZXjn/Ep6Aa2cRj5SunpaAmiXlGfvKmUjjMRT2RAC1deztKMaWBYVOkoq+pUlD1RfNd+jzbvRWsr3444J2tAOSo2ogHDJ/0jcm4ypamX6P76n27eNR4KXrplFwIIrOJf74M3zXdE9S61LTdexbsuVKaH+bUY9PtoW7gov1Mi+eJMm4kOfDYYdsKG3ZWUnTFDaSMY0aMwZtPpjm9LsKUYKGGYDZmxIlghD1j/u1CggqQ/IO516TOK/obGbaWYj5uCOPYfbpQkDIl24+oJHKFszlRtTeaFA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHPt4-0001Df-HF for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 11:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Nov 2024 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74624 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17329823884630 (code B ref -1); Sat, 30 Nov 2024 16:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Nov 2024 15:59:48 +0000 Original-Received: from localhost ([127.0.0.1]:48347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHPsp-0001Cc-P1 for submit@debbugs.gnu.org; Sat, 30 Nov 2024 10:59:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHPsk-0001CG-EZ for submit@debbugs.gnu.org; Sat, 30 Nov 2024 10:59:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHPsj-0004PB-PQ for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 10:59:42 -0500 Original-Received: from forward400d.mail.yandex.net ([2a02:6b8:c41:1300:1:45:d181:db01]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHPsf-0006zQ-5i for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2024 10:59:40 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:3143:0:640:c03:0]) by forward400d.mail.yandex.net (Yandex) with ESMTPS id C6F6A61B69 for ; Sat, 30 Nov 2024 18:59:26 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Pxei3HTOnqM0-g6L0eRI4; Sat, 30 Nov 2024 18:59:26 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1732982366; bh=IcwbElCNqngA24+VeR4itnhsY9h9zKgA4q4xbRAJYaY=; h=Message-ID:Date:To:Subject:From; b=iyRxm862cO0eQ2UzGXs76/29DpYPunizyNUwOC+EKspp+JbRqhGfgw/o/cb+1xxjI FWHIyNuYXEpQ8xtRILzYuRTjsBhBZ/9dd0dwAsEYT0ONNejRshbSZ7R3DUihDJDyXf GlP8UpfGvVZ2VgksXkOEeKKw2GCa4CMRSnntfcXk= Authentication-Results: mail-nwsmtp-smtp-production-main-19.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received-SPF: pass client-ip=2a02:6b8:c41:1300:1:45:d181:db01; envelope-from=reich-cv@yandex.ru; helo=forward400d.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296172 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >From time to time i get emails with attachments from my colleges, which the= y send from "Roundcube" web-interface.=20 Often, i cannot open these attachments by =3DRET=3D(gnus-article-press-butt= on) or save them =3Do=3D(gnus-mime-save-part) with correct name. (interestingly =3DX-m=3D(gnus-summary-save-parts) works correctly) The reason is gnus cannot parse correctly some attached filenames. The example of such attachment (I took it from gnus-summary-show-raw-articl= e) --=3D_d38c0abddd645077f401d42fa430d9d5 Content-Transfer-Encoding: base64 Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingm= l.document; name=3D"=3D?UTF-8?Q?=3DD0=3D9E=3DD0=3DB1=3DD0=3DB7=3DD0=3DBE=3DD1=3D80_202= 4_=3D28=3DD0=3DBD=3DD0=3DB0_=3D2Ed?=3D =3D?UTF-8?Q?ocx?=3D" Content-Disposition: attachment; filename*0*=3DUTF-8''%D0%9E%D0%B1%D0%B7%D0%BE%D1%80%202024%20%28%D0%BD%D0; filename*1*=3D%B0%20.docx; size=3D10 c2Rmc2FmYXNmCg=3D=3D --=3D_d38c0abddd645077f401d42fa430d9d5-- I have tried to examine the reason. As i see it,=20=20 gnus-data for such attachment is formed incorrectly: (# ("application/vnd.openxmlformats-officedocument.word..." (name . "=D0=9E=D0=B1=D0=B7=D0=BE=D1=80 2024 (=D0=BD=D0=B0 .docx")) base64 nil ("attachment" (size . "10") (filename . "=D0=9E=D0=B1=D0=B7=D0=BE=D1=80 2024 (=D0=BD\320")) nil ni= l nil) One can see that the filename is broken. It should be "=D0=9E=D0=B1=D0=B7=D0=BE=D1=80 2024 (=D0=BD=D0=B0 .docx" just= like the name. I have attached the example of the mail(one can open it with nndoc) Please, could you fix this bug. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=mail.test Content-Transfer-Encoding: base64 UmV0dXJuLXBhdGg6IDx0ZXN0QHRlc3QuY29tPgpFbnZlbG9wZS10bzogdGVzdEB0ZXN0LmNvbQpE ZWxpdmVyeS1kYXRlOiBTYXQsIDMwIE5vdiAyMDI0IDExOjA0OjM1ICswMzAwCk1JTUUtVmVyc2lv bjogMS4wCkRhdGU6IFNhdCwgMzAgTm92IDIwMjQgMTE6MDQ6MzUgKzAxMDAKRnJvbTogcmVpY2gg PHRlc3RAdGVzdC5jb20+ClRvOiB0ZXN0QHRlc3QuY29tClN1YmplY3Q6IHRlc3QKTWVzc2FnZS1J RDogPDFhYWM3Njc2YTgzOGYzZWM3YTE2ODIwZjY1ZTZmZjRjQHRlc3QuY29tPgpDb250ZW50LVR5 cGU6IG11bHRpcGFydC9taXhlZDsKIGJvdW5kYXJ5PSI9X2QzOGMwYWJkZGQ2NDUwNzdmNDAxZDQy ZmE0MzBkOWQ1IgoKLS09X2QzOGMwYWJkZGQ2NDUwNzdmNDAxZDQyZmE0MzBkOWQ1CkNvbnRlbnQt VHJhbnNmZXItRW5jb2Rpbmc6IGJhc2U2NApDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3ZuZC5v cGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC53b3JkcHJvY2Vzc2luZ21sLmRvY3VtZW50Owog bmFtZT0iPT9VVEYtOD9RPz1EMD05RT1EMD1CMT1EMD1CNz1EMD1CRT1EMT04MF8yMDI0Xz0yOD1E MD1CRD1EMD1CMF89MkVkPz0KID0/VVRGLTg/UT9vY3g/PSIKQ29udGVudC1EaXNwb3NpdGlvbjog YXR0YWNobWVudDsKIGZpbGVuYW1lKjAqPVVURi04JyclRDAlOUUlRDAlQjElRDAlQjclRDAlQkUl RDElODAlMjAyMDI0JTIwJTI4JUQwJUJEJUQwOwogZmlsZW5hbWUqMSo9JUIwJTIwLmRvY3g7CiBz aXplPTEwCgpjMlJtYzJGbVlYTm1DZz09Ci0tPV9kMzhjMGFiZGRkNjQ1MDc3ZjQwMWQ0MmZhNDMw ZDlkNS0tCg== --=-=-=--