From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2JdIFXvOqmR9RgEASxT56A (envelope-from ) for ; Sun, 09 Jul 2023 17:12:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QMQiFXvOqmQ31wAAauVa8A (envelope-from ) for ; Sun, 09 Jul 2023 17:12:59 +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 2EBFA2EF78 for ; Sun, 9 Jul 2023 17:12:59 +0200 (CEST) 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688915579; a=rsa-sha256; cv=none; b=qO0rrslipQ5sYxoZdFYM7KGiHCA8JH9EjNZGPhr6/uk5sMhQYXKj7RsyxqVesdcqPe5OGQ N/IG+OGy0jOvo6P4gOhSX008BUFSa9Lx9wab7Wa3qKoMFDSh78vbvxNe2ItS1RxsFg45fs EMaMSb/L9d8IprgfRLojHo7yV6cVLIh2HSPcgU61v4tpk1g1Jog6dJLfcpT+uPfVRHUHzk AfXrSUHs8vJ5xxsKMqQQV2eMWubQBF9VNjw+1Br+VJIeqxvC3wBkEapzCp5N8STANveJrZ gcugtwjq+wCd34u+5Ukk+LxIFP14JBvL6aprtzPx2td8WEpjSml+wGFWEkoWxA== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688915579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=QzRDgF8uASbNaN9dfpcZ7IRj7XBYFaLFEYYf4WPXD6k=; b=NjgkKkVIQR3rwtZ41dKatlyJXNL4eFDmt64fnZsHkgueMxa/jKTVhOY8fPu4o4qUaDXVq6 sfSikPDYnez1o5/G0TR5Va5YFtss3FIrjsHi+qBAordsyE38IZqCldmZBgCsddGMCzapNd 5z+jjh4boaPK225zLBQXSSMmKK0nxy4GwcwXC7JULDNqLNHxzzyaslALWdANHf83pkg1G6 f0v6bfFS/VIDgML+/XjWiF1O+CcmBJ9MPVB/tGI6EzLzEq6fK4l21CuJxFDe5N+3OTd2AI Jqfl14Ze6XlzWnBuS/X/x90C1PhlJERv99ltG9E2FW6/yMp/6UyI8iLosAeL1g== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 267635F388; Sun, 9 Jul 2023 15:12:58 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id 228AE5E019 for ; Sun, 9 Jul 2023 15:12:55 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-210-253.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.210.253]) by phubs.tethera.net (Postfix) with ESMTPS id 06613180172 for ; Sun, 9 Jul 2023 12:12:53 -0300 (ADT) Received: (nullmailer pid 3543300 invoked by uid 1000); Sun, 09 Jul 2023 15:12:53 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [PATCH] test: add known broken test for message-id with embedded spaces. In-Reply-To: <20230527172051.1738824-1-david@tethera.net> References: <20230527172051.1738824-1-david@tethera.net> Date: Sun, 09 Jul 2023 12:12:53 -0300 Message-ID: <87351x6ruy.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: SZGVDFQ6YDOJTC25V5JHEERTJOLUBYZX X-Message-ID-Hash: SZGVDFQ6YDOJTC25V5JHEERTJOLUBYZX X-MailFrom: david@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 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-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.50 X-Migadu-Queue-Id: 2EBFA2EF78 X-Spam-Score: -1.50 X-TUID: gPMXnCQbpjOk David Bremner writes: > According to my reading of RFC5322, there is an obsolete syntax for > Message-Id which permits folding whitespace (i.e. to be removed / > ignored by parsers). In [1] Paul Wise observed that notmuch removed > whitespace on indexing, but does not do any corresponding > normalization of queries. Mark the latter as a bug by adding a failing > test. Applied to master. I'm curious how many such message ids there are in the wild. It is not particularly hard to fix this in the query parser(s), but it is a bit tedious (e.g. a new field processor would need to be added for the id prefix in the infix query processor).