From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +OTaFftAWmAtYQAA0tVLHw (envelope-from ) for ; Tue, 23 Mar 2021 19:26:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KGqdEftAWmA4JgAAbx9fmQ (envelope-from ) for ; Tue, 23 Mar 2021 19:26:51 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 E28FFB98A for ; Tue, 23 Mar 2021 20:26:50 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1696B1FADE; Tue, 23 Mar 2021 15:26:47 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id E81C91FAC2 for ; Tue, 23 Mar 2021 15:26:43 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0A6595FA96; Tue, 23 Mar 2021 15:26:42 -0400 (EDT) Received: (nullmailer pid 862651 invoked by uid 1000); Tue, 23 Mar 2021 19:26:41 -0000 From: David Bremner To: Tomi Ollila , Firmin Martin , notmuch@notmuchmail.org Subject: Re: Query emails sent to undisclosed-recipients In-Reply-To: References: <875z1iauay.fsf@Inspiron.i-did-not-set--mail-host-address--so-tickle-me> Date: Tue, 23 Mar 2021 16:26:41 -0300 Message-ID: <87o8f9pt72.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2E25VQ62RCD6GOCUO7IMEZRGET2SVC2N X-Message-ID-Hash: 2E25VQ62RCD6GOCUO7IMEZRGET2SVC2N 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616527611; 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-unsubscribe:list-subscribe:list-post; bh=8G25LHQr9oQ+Ar4R6SH+dXX1SqUQ+Y5x1hiRuKURP3A=; b=UHy9FyPj+2QEsCYH0maczUOJPC02vUESLnPfMTVQjcxT3vB+jet2+cGIUDNXBMmT10w3z2 g1jyCPwmHv/ACJq10MWNWIwzHlSoV/Bcy6xKaqG4URsxuC7ouBeLNMG4zVQpUJ4nrBPR1u /+7Fm8d8O23Jz0zPynTbs050/vei5prOzsgJr46Atq8n8EdADP/D8Cm4OKoZLxAhWdXulB F+5+zaX65JkZeXHs8MzhFYxwvEcCHRiRm7Gkf0PXEG1HanXet78vHTwdLOa4OzkF0OQWBE g+2hBkAKnWYOoVKV2EEVxPrld03oJgYFParFL7O87JKjCv8nFF8iUIX2RjGCzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616527611; a=rsa-sha256; cv=none; b=HIeYYE8HAY4Ugd1gW6ykIdPKLjY923V+my8Mn17FvxJp9W8pUpgke+Zkm9bct0CkLrQFfu TKDXuFG9dxIkribQz9VGX3S3J4mkAT9n77b/9A4+PkBdBDdkyg3mvhCZ9Bbm8CzaTyISNA mcKrJXunvxPVzY95OXJBbOSZ0sj+2Uc81mYjawfpPx4rM3eUqmXsV6e/m0b82EdtGzsnlK FlPP91wkwQpvkLPgzUT/5JUSWNXr7ns9Zfix7Tj8olJuIuyiypr2eZIHDMCPjqYr4G6rh9 2j9XQEVyZ+GScKnbOXABDxCI2ffY+gjdVRaDWVEix8D2j1D5PjbCfJCcb/wlPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E28FFB98A X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3nIPrPgtjmk1 Tomi Ollila writes: > On Tue, Mar 23 2021, Firmin Martin wrote: > >> Hi, >> >> I have emails whose the "To" field is undisclosed recipients. In JSON: >> >> ``` >> "To": "undisclosed-recipients: ;" >> ``` >> >> I would want to tag such email as spam, but I can't query them >> using >> >> ``` >> notmuch show --format=json to:"undisclosed-recipients: ;" >> ``` >> >> or any variation (regex etc.). >> >> This question has already been addressed in 2013 [1]. Are there any plan >> to implement this feature or available workaround ? > > Tried. many things. did not work. notmuch-search-terms(7) tells > > to: > > (so no regex syntax...) > > I don't know why that doesn't work. IIRC no plan, but patches welcome >;D The (light) technical background is that regex syntax in notmuch requires value slots, and someone (TM) would need to evaluate how much adding a value slot for to: would cost in terms of database size / speed of queries. I think there's a separate question about address groups being ignored, discussed in the linked thread. d