From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4Fu/E3ZGSWP+HgEAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 13:22:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cGziE3ZGSWMGhwAA9RJhRA (envelope-from ) for ; Fri, 14 Oct 2022 13:22:30 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 05DC6A243 for ; Fri, 14 Oct 2022 13:22:30 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F29125F841; Fri, 14 Oct 2022 11:15:58 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id F41075F361 for ; Fri, 14 Oct 2022 11:15:56 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B7C435FBC0; Fri, 14 Oct 2022 07:15:55 -0400 (EDT) Received: (nullmailer pid 8309 invoked by uid 1000); Fri, 14 Oct 2022 11:15:54 -0000 Resent-To: notmuch@notmuchmail.org Resent-From: David Bremner Resent-Date: Fri, 14 Oct 2022 08:15:54 -0300 Resent-Message-ID: <87r0zahd05.fsf@tethera.net> X-Envelope-From: bounces+20221011-bremner=debian.org@tracker.debian.org Tue Oct 11 16:06:17 2022 Received: from mitropoulos.debian.org (mitropoulos.debian.org [IPv6:2001:648:2ffc:deb:216:61ff:fe9d:958d]) by fethera.tethera.net (Postfix) with ESMTPS id 89C1B5FBBC for ; Tue, 11 Oct 2022 16:06:17 -0400 (EDT) Received: from ticharich.debian.org ([2607:f8f0:614:1::1274:64]:45424) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=ticharich.debian.org,EMAIL=hostmaster@ticharich.debian.org (verified) by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLW4-0047hB-2I for david@tethera.net; Tue, 11 Oct 2022 20:06:15 +0000 Received: from localhost ([::1]:46036 helo=ticharich.debian.org) by ticharich.debian.org with esmtp (Exim 4.94.2) (envelope-from ) id 1oiLW2-004KLV-LL for david@tethera.net; Tue, 11 Oct 2022 20:06:13 +0000 Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:34496) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,EMAIL=hostmaster@muffat.debian.org (verified) by ticharich.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLW2-004KLH-Fa for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:06:13 +0000 Received: from quantz.debian.org ([2607:f8f0:614:1::1274:73]:60008) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=quantz.debian.org,EMAIL=hostmaster@quantz.debian.org (verified) by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLW0-004IOh-Rl for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:06:11 +0000 Received: from qa by quantz.debian.org with local (Exim 4.92) (envelope-from ) id 1oiLVz-0005tj-A1 for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:06:11 +0000 Received: from buxtehude.debian.org ([2607:f8f0:614:1::1274:39]:49368) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=buxtehude.debian.org,EMAIL=hostmaster@buxtehude.debian.org (verified) by quantz.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiLVz-0005sw-7D for notmuch@packages.qa.debian.org; Tue, 11 Oct 2022 20:06:11 +0000 Received: from debbugs by buxtehude.debian.org with local (Exim 4.94.2) (envelope-from ) id 1oiLVw-00AkMg-2k; Tue, 11 Oct 2022 20:06:08 +0000 X-Loop: owner@bugs.debian.org Subject: Bug#1021614: notmuch: RFC2047-encoded special characters in display-name show up unquoted Also-Resent-From: Jakub Wilk Also-Resent-To: debian-bugs-dist@lists.debian.org Also-Resent-CC: jwilk@jwilk.net, Carl Worth X-Loop: owner@bugs.debian.org Also-Resent-Date: Tue, 11 Oct 2022 20:06:05 +0000 Also-Resent-Message-ID: X-Debian-PR-Message: report 1021614 X-Debian-PR-Package: notmuch X-Debian-PR-Keywords: X-Debian-PR-Source: notmuch Received: via spool by submit@bugs.debian.org id=B.16655185592559547 (code B); Tue, 11 Oct 2022 20:06:05 +0000 Received: (at submit) by bugs.debian.org; 11 Oct 2022 20:02:39 +0000 Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:48492) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,EMAIL=hostmaster@muffat.debian.org (verified) by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLSZ-00AjqY-Vq for submit@bugs.debian.org; Tue, 11 Oct 2022 20:02:39 +0000 Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:52642) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=paradis.debian.org,EMAIL=hostmaster@paradis.debian.org (verified) by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLSZ-004IE3-AS for submit@bugs.debian.org; Tue, 11 Oct 2022 20:02:38 +0000 Received: from jwilk by paradis.debian.org with local (Exim 4.94.2) (envelope-from ) id 1oiLSW-0047ze-Ic for submit@bugs.debian.org; Tue, 11 Oct 2022 20:02:36 +0000 Date: Tue, 11 Oct 2022 22:02:31 +0200 From: Jakub Wilk To: submit@bugs.debian.org Message-ID: <20221011200231.53rzm7divs25dr5k@jwilk.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="yio2a4u2nunudn4q" Content-Disposition: inline X-Loop: dispatch@tracker.debian.org X-Distro-Tracker-Keyword: bts X-Distro-Tracker-Package: notmuch X-Debian: tracker.debian.org X-Debian-Package: notmuch X-PTS-Package: notmuch X-PTS-Keyword: bts Precedence: list Message-ID-Hash: RM5QACHLM6XNHJWTC5BQHD7OIFC3VTLE X-Message-ID-Hash: RM5QACHLM6XNHJWTC5BQHD7OIFC3VTLE X-MailFrom: jwilk@jwilk.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Reply-To: Jakub Wilk , 1021614@bugs.debian.org List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665746550; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-message-id: list-id:list-help:list-owner:list-unsubscribe:list-subscribe: list-post; bh=Yw6RLHbInMnLA2GVl5aKhd+wQT2sBGkXmakVHs9GyMk=; b=KOgPkFiiPimVog2rpGzhE4LAEfJbEUAJi7iYGiTCjGiIaVR+IKEcPiPCoNbWBbzjKJb/70 08+lgqGVrRNOO2BEWwd3jSy5KOVEtngmyDrz5tLBcUPR6dD97UV6A7uplaBMpnIFXjmtPp A1ib1JApoNAVId+VVxWPRs32orxAKD0XqxDEu7ZHH7TtQMlN/GmY8LtF0uID2IZ5njsWVb FTFTJKVrnum9iBJ0GTKucCfaH/2PVAWwh4nQ9fBQUlssLjktk6MnG4UO3iLObIXbfKD1A/ gAWBVMDJLzGeo7WrZfiv6LcddIfs4RUJJ7ZUHjXkyLAHjfNwMVwSpjhSilqhOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665746550; a=rsa-sha256; cv=none; b=Sjz02gueR0zJc5/gPB1cP+V1XE3gpts+RvNS//Fe80iabN3oplVfGNYIJSmPYYLCk+Aezy 2D/3xiUyhFCWvbEz9DXWVDVcgDySwESlGdDqeNGgoWbiz/yV7BQqMuwpeoCmIRGTtfGOx9 RVD+ITt4AzJlTQ3pAdzYVoJkTJOT4sJRxmfyC+uJgdx8Wh/OY80HyH0Ka4r/V87wfT2q8M HqtqrVkiqhcXuGIZ2PwkGRTtJFZ66r/0UmCJkVBhDGY66zUBrnzNok1t2dI48k5PdmYMQT WFJL96IixAF3NGyEriVEzbYSspXSgWvhs/IgRprYivZ3qXgiQpJ9YzA8pjnJIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 4.75 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 05DC6A243 X-Spam-Score: 4.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: U8eCD5OEXn1c --yio2a4u2nunudn4q Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Package: notmuch Version: 0.37-1 The attached message has a bunch of RFC-2047-encoded special characters in the display-name part of the From field: $ grep ^From: weird-from.eml From: =?UTF-8?Q?=3Cfoo=40example.org=3E=2C?= When you show this message in notmuch, the special characters show up unquoted (and unencoded), so that it looks like there are two addresses in the From field: $ ./notmuch-show-from < weird-from.eml From: , I initially thought this is a GMime bug, but it seems GMime gets this right: $ ./gmime-show-from < weird-from.eml From: "," -- System Information: Architecture: i386 Versions of packages notmuch depends on: ii libnotmuch5 0.37-1 ii libc6 2.35-3 ii libglib2.0-0 2.74.0-2 ii libgmime-3.0-0 3.2.13+dfsg-2 ii libtalloc2 2.3.4-1 ii zlib1g 1:1.2.11.dfsg-4.1 -- Jakub Wilk --yio2a4u2nunudn4q Content-Type: message/rfc822 Content-Disposition: attachment; filename="weird-from.eml" From: =?UTF-8?Q?=3Cfoo=40example.org=3E=2C?= --yio2a4u2nunudn4q Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --yio2a4u2nunudn4q--