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 6MXHEXZGSWP16QAAbAwnHQ (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 ULPqEXZGSWPvVgEA9RJhRA (envelope-from ) for ; Fri, 14 Oct 2022 13:22:30 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 0C8E3A439 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 530335F8CB; Fri, 14 Oct 2022 11:16:16 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id A211F5F84D for ; Fri, 14 Oct 2022 11:16:12 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E8F0F5FBC0; Fri, 14 Oct 2022 07:16:11 -0400 (EDT) Received: (nullmailer pid 8320 invoked by uid 1000); Fri, 14 Oct 2022 11:16:11 -0000 Resent-To: notmuch@notmuchmail.org Resent-From: David Bremner Resent-Date: Fri, 14 Oct 2022 08:16:11 -0300 Resent-Message-ID: <87mt9yhczo.fsf@tethera.net> X-Envelope-From: bounces+20221011-bremner=debian.org@tracker.debian.org Tue Oct 11 16:33:12 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 A15125FBBC for ; Tue, 11 Oct 2022 16:33:12 -0400 (EDT) Received: from ticharich.debian.org ([2607:f8f0:614:1::1274:64]:33352) 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 1oiLw7-0048wd-Mm for david@tethera.net; Tue, 11 Oct 2022 20:33:10 +0000 Received: from localhost ([::1]:57942 helo=ticharich.debian.org) by ticharich.debian.org with esmtp (Exim 4.94.2) (envelope-from ) id 1oiLw6-004Lrr-An for david@tethera.net; Tue, 11 Oct 2022 20:33:08 +0000 Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:35398) from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=mitropoulos.debian.org,EMAIL=hostmaster@mitropoulos.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 1oiLw5-004LrV-V4 for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:33:08 +0000 Received: from quantz.debian.org ([2607:f8f0:614:1::1274:73]:56582) 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 mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1oiLw3-0048wW-4x for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:33:06 +0000 Received: from qa by quantz.debian.org with local (Exim 4.92) (envelope-from ) id 1oiLw0-0006Wv-CE for dispatch+notmuch@tracker.debian.org; Tue, 11 Oct 2022 20:33:04 +0000 Received: from buxtehude.debian.org ([2607:f8f0:614:1::1274:39]:37746) 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 1oiLw0-0006Vm-9d for notmuch@packages.qa.debian.org; Tue, 11 Oct 2022 20:33:04 +0000 Received: from debbugs by buxtehude.debian.org with local (Exim 4.94.2) (envelope-from ) id 1oiLvz-00AnXX-9w; Tue, 11 Oct 2022 20:33:03 +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: Carl Worth X-Loop: owner@bugs.debian.org Also-Resent-Date: Tue, 11 Oct 2022 20:33:02 +0000 Also-Resent-Message-ID: X-Debian-PR-Message: followup 1021614 X-Debian-PR-Package: notmuch X-Debian-PR-Keywords: References: <20221011200231.53rzm7divs25dr5k@jwilk.net> <20221011200231.53rzm7divs25dr5k@jwilk.net> X-Debian-PR-Source: notmuch Received: via spool by 1021614-submit@bugs.debian.org id=B1021614.16655201162571105 (code B ref 1021614); Tue, 11 Oct 2022 20:33:02 +0000 Received: (at 1021614) by bugs.debian.org; 11 Oct 2022 20:28:36 +0000 Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:41014) 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 1oiLrh-00AmrH-55 for 1021614@bugs.debian.org; Tue, 11 Oct 2022 20:28:36 +0000 Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:40072) 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 1oiLrg-004JZC-Dm for 1021614@bugs.debian.org; Tue, 11 Oct 2022 20:28:35 +0000 Received: from jwilk by paradis.debian.org with local (Exim 4.94.2) (envelope-from ) id 1oiLrd-00493V-Qa for 1021614@bugs.debian.org; Tue, 11 Oct 2022 20:28:33 +0000 Date: Tue, 11 Oct 2022 22:28:30 +0200 From: Jakub Wilk To: 1021614@bugs.debian.org Message-ID: <20221011202830.n2ahsqiexuw5sn5b@jwilk.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="njc5dmxt4jrgi4hb" Content-Disposition: inline In-Reply-To: <20221011200231.53rzm7divs25dr5k@jwilk.net> 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: D6O5ZEL5LDYYMSLVZS25CE7PZU3HVHCA X-Message-ID-Hash: D6O5ZEL5LDYYMSLVZS25CE7PZU3HVHCA 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=rY/P7lZLnjKw57eUpL2nBqbeo5aeWJ+EqJaS1tR0auI=; b=t1oH6bDGb745zEG7tjs7c+/849WN2lIxIlSRXxULXy51Yudvkuq52jMeCYwkKvw1afNODb lsduxaFwnn/ihmSHvT9pyHU8QAraDj1FcpxNQ3AFYp8pCHMtUyWRStHJwDL7BX3AQWcSRh PuFJpt2sZUg6ma0rI8VM+hRO1NBjeBrPwJ6oPIETtwMgv7qMKji4YJGqp8evlQOc7n57Wm TI/5J1UqEko8gHcEEXMBRvLYpeg1UTeg22Kv4MFrz51JcX482VvIhSaJ4TLk1w4Q03ry9N bYWhe/u/ubvZh2th7hZSCUwHvh9BsPfDSpUSSh7sFZKx7iQ1YQU0BFvSQdmbxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665746550; a=rsa-sha256; cv=none; b=qMrjPa7FN3Tl6Y9JVI0WM0nIxdUxaKeBznnPc1fi6h4kJi0yf7ZcuUd28NAAQ7w3YCrZNY 2QojaWgy6DBrXnwOwu8Y5Hyl2yLXI6GLlbIdrurQNvLShkpHto189ZNuZKgN//hL0G585l +bKV8Ktsy4EVRGbfSWOtxnvHv0QhyqkngCRseyp/KcFhDsLZYg9GuCZab2XrdVxN9/OBhX W92K+CQVXzhww1+OsNBlTpcuVbcZieVplBB4d90jcpyZJeiXp1V7IPu23nls4nA/w67Xdt PANvVxbWMIOJr/9EXmDQc80TuaZStjZjvsVnreuaVJnzu2Y5DYGTXBCeaLeACA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 3.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0C8E3A439 X-Spam-Score: 3.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0pwom+BWkGvR --njc5dmxt4jrgi4hb Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Attaching the reprocucer scripts, which somehow got lost in transport!? -- Jakub Wilk --njc5dmxt4jrgi4hb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=notmuch-show-from #!/bin/bash set -e -u tmpdir="$(mktemp -d)" export NOTMUCH_DATABASE="$tmpdir" notmuch --config '' new > /dev/null mkdir -p "$NOTMUCH_DATABASE"/{cur,new,tmp} notmuch --config '' insert > /dev/null notmuch --config '' show '*' | grep ^From: rm -rf "tmpdir" --njc5dmxt4jrgi4hb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=gmime-show-from Content-Transfer-Encoding: quoted-printable #!/usr/bin/python3 import sys import gi gi.require_version('GMime', '3.0') =66rom gi.repository import GMime GMime.init() stream =3D GMime.StreamPipe.new(sys.stdin.fileno()) parser =3D GMime.Parser.new_with_stream(stream) msg =3D parser.construct_message() addrs =3D msg.get_from() addrs =3D addrs.to_string(GMime.FormatOptions(), True) print('From:', addrs) --njc5dmxt4jrgi4hb Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --njc5dmxt4jrgi4hb--