From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yDrUFKMwU2YHTgAAe85BDQ:P1 (envelope-from ) for ; Sun, 26 May 2024 14:52:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yDrUFKMwU2YHTgAAe85BDQ (envelope-from ) for ; Sun, 26 May 2024 14:52:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716727969; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=JMg4QkF3sBnDiDUtkOvzSwvGszmq9kMBfLiAYwpkmuI=; b=bJX0exDowFF2f1PSTuqVC8N9ne/4qTkRnTZmSCWmSRIEkQHN04SBHbV7of6W9zRRbI0qpr yArkT4qP12T4V8Hm6gSMZa7a6pGSjeHv3q0HS4I+iRY2sraLFjqtIWDKkTSjj4mOmnZ/tg lysxytbuvJF0I8I930T8eYvDBezKXdxGyXQiZf2oCfPYT7Vw6Xz0+6qKu1xnwSEIP1DOjq U20jQxzf1ZI7ZlfYJTJCuaCJFQgHe9MitdJ7lAgb97E0ldbIZpO1SXQVCYaL/hJOy8FIc0 EWIdsLcE/r3WWWetSaVAFUJOelRdJT966EAq4Li2Dd/nSlVs6whUI8QUfjTVKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716727969; a=rsa-sha256; cv=none; b=sXXBmqbDp7h9kh6RQRdXoawJHfmSChFbFPuYj+QSLk0YFQh1q42txOWde4K9kTYFtbyUNo tMwlTDbvUOYF6sRWNGg5VgUEApOUqc6DMhYzjP7VMVTf7vgOZJ/ZfAFqP05uByG0DrcF3g u3R2RG/lB1GVSIfbsKKR0NK6i/bsmwMQKo+T6VXaei1lmZXJt2KGcYsK21r+SkmZjlvLAk BqUdo3aepU4lFKx+L8R4xOrwQoXRzdzXoYnTRaXGrj4IyaqZ2wfsboEERm1HQEs6ZbCkVp Wu3EA0Vdl4tAHzojTtJDXFUbvpByqmVXDcWCiPtX6RtegQdnsttHhmmVMJiMoQ== 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 D0711398C2 for ; Sun, 26 May 2024 14:52:48 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 664885E50C; Sun, 26 May 2024 12:52:45 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id A06695E502 for ; Sun, 26 May 2024 12:52:42 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-211-58.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.211.58]) by phubs.tethera.net (Postfix) with ESMTPS id 1A697180066; Sun, 26 May 2024 09:52:41 -0300 (ADT) Received: (nullmailer pid 649651 invoked by uid 1000); Sun, 26 May 2024 12:52:40 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test/cli: Add known broken test for (missing) quoting in From Date: Sun, 26 May 2024 09:52:32 -0300 Message-ID: <20240526125232.649633-1-david@tethera.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: FBP7S6DJO5JULZ7FWX4XEPJMZS6UZC3M X-Message-ID-Hash: FBP7S6DJO5JULZ7FWX4XEPJMZS6UZC3M X-MailFrom: bremner@tethera.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 CC: 1021614@bugs.debian.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Spam-Score: -2.46 X-Spam-Score: -2.46 X-Migadu-Queue-Id: D0711398C2 X-Migadu-Scanner: mx13.migadu.com X-TUID: ttqNWqCVVnpt In [1], Jakub Wilk observes that the current behaviour is confusing since it looks like there are two mailboxes in From, while in fact there is only one. It seems to me that notmuch should at least quote the display-name part of a mailbox if it has "funny" characters in it, and perhaps always quote it. Either way will require changing the indexing code, since the structure is lost when writing the headers to the database. [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021614 --- test/T520-show.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/T520-show.sh b/test/T520-show.sh index 6bcf109c..8121c3db 100755 --- a/test/T520-show.sh +++ b/test/T520-show.sh @@ -45,6 +45,12 @@ if [ "${NOTMUCH_HAVE_SFSEXP-0}" = "1" ]; then fi +test_begin_subtest "quoting in From" +test_subtest_known_broken +add_message '[from]="=?UTF-8?Q?=3Cfoo=40example.org=3E=2C?= "' +output=$(notmuch show id:${gen_msg_id}|grep From:) +test_expect_equal "${output}" 'From: "," ' + add_email_corpus duplicate ID1=debian/2.6.1.dfsg-4-1-g87ea161@87ea161e851dfb1ea324af00e4ecfccc18875e15 -- 2.43.0