From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id x5V2LIlJWmDeGAAA0tVLHw (envelope-from ) for ; Tue, 23 Mar 2021 20:03:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yHzUJ4lJWmAhNAAAbx9fmQ (envelope-from ) for ; Tue, 23 Mar 2021 20:03:21 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 0EDEF1AF1E for ; Tue, 23 Mar 2021 21:03:21 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5E07226B99; Tue, 23 Mar 2021 16:03:15 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id E5AAD1FAC2 for ; Tue, 23 Mar 2021 16:03:12 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id F327A1B00080; Tue, 23 Mar 2021 22:03:09 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1616529790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fj/zjo0zUDgTsMupzPBReEzYFkGBStSkTp9jVJTop/Q=; b=bNcQxtOQpdepqPVQ6RDfLy9lYSUG8Q5Cle5R+AwRTlFwoJYHP8quOTxE9sRBlVa182EXxA l42kTBxOsgHqtsgGjbIyDGzD5iZXdBxKdgSS0QCIaA09ALRhKRoEfKR/XNVvD2s5Beiq4u qG75Vwiz77cre8SBhZE27iYGISswvRL3Z6vXDAJulzrwDQO0TCvE1uuQATeYEBIrQivhMb 6OqaZTiTVn/GJZ1SZ60mE3Dj47DDYPS3krYGk9vy6310YQRDQMCF+gkVygQoYUowpA3Gjs T4Ao9vusoQsvYTqhAYriwc9KxaiicklCU8UGyZhSF7M5Z0zwsfCTUPR8tormRg== From: Tomi Ollila To: David Bremner , Firmin Martin , notmuch@notmuchmail.org Subject: Re: Query emails sent to undisclosed-recipients In-Reply-To: <87o8f9pt72.fsf@tethera.net> References: <875z1iauay.fsf@Inspiron.i-did-not-set--mail-host-address--so-tickle-me> <87o8f9pt72.fsf@tethera.net> User-Agent: Notmuch/0.31.4+128~gc67b63a (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1616529790; a=rsa-sha256; cv=none; b=anVk5750UiNd7VPilNA8NrozRkee8DaMw1rw+jSm+vYQCT6mvAo/B5ELWW/VOAFa39eQnB qzcI1YsgryRshEKJeTfr7Er1usKhs+YUfbCRJIn455oFiyR3NZZVBpOCAjQJuW838xQVbG u1CykANqmSjN96/CRIwk23TAJ9hw+LU9bXunmVkke2PSKcZYjG2cv6IBZnn1RhIBS0uwyR 5NZUMDM9+hGZGWKg3SoRh0HOR0nWIEeWEtpIbfckFwiuAsPpqHKD3Xus3ofo+5KckZp6uf R1s7NRAMPhZaiZvP4keL/D8JGYUFREu0+sJ3d0wOi6VSfSqepC2LcSAyspE29w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1616529790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fj/zjo0zUDgTsMupzPBReEzYFkGBStSkTp9jVJTop/Q=; b=hcHqFs/Q0JsT2boZOza65bMwmKyCEFP/G1VAXakSMKaQOQGjqvE6i3cyfCHPNji4JOoAVA HLkzTyt01Krx0KvTP1NMe2ea/PTORM1A9KhHFJY/qK5jVV+7zr2Lo7TI3HSDglYJBikIMb moglldIiLQRAuXCyCoNjEULP2rhX4Bqy2gjnxUOa+AtXPBar83bk6/Rejl4741rCSX2KUn 0TKRy9avWCP00nI16cVjO4vyyosX+YNvZhSTe4QigvW0l+ek27gkJ8bPp8bbPxGR9FebTz kWiqwfHTb08q2Sx1zk3fWC49dnRedpgq4pqGyV4Q69teOQ+CcIQ+IVEZD01gTg== Message-ID-Hash: KDWAMJ4QTGT2RUQCSRMYWYNVUBTIDENA X-Message-ID-Hash: KDWAMJ4QTGT2RUQCSRMYWYNVUBTIDENA X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616529801; 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:dkim-signature; bh=+GS5PXD20i3qj/3DCpgm0F3a+ycBFrqxTMpPlFJJ3WA=; b=siNxyD84ZtddLH/NEPfpvjxtejDKWuiHzyEWXZtacP8vCLT1ZKBFF05y+S316ZZTdDefv3 WyI0DizohIJwOpPCZh7i8l7ltxBqws4mILW4MweV8QNs0bpN89QMvNRW0cftRE1dCrMOiB i5e8mtHinbFm0A0u1/lEcrRVBIAfSygJyFxDOkGjvZOuARTtiinD1Ykt+ImTJZjjv3zufo 9Q+xvf62AzhSbAj4B7txPf5J815W8VgpszyXtjJLbDuReC6/o2UT36VyZt7TwdITs3VBaE lgmKH5cjm1VFBIQBD/goi0ETOaLWu81r0QRiyACagN3W/FRF+/QQAFUabPeLgA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1616529801; a=rsa-sha256; cv=fail; b=eXpslEsTIYRypx289Ay0lh4OY9M/ryoKtbnpHfnjPEGmf0QhiBPix7DVs8ju6Hq/57fneq ZR0cP09l9p6yhjFbWYYKeBWS1jRnJZSRMiUspG6rxkreezPYsETQf3NFmt4TaNuBV8if2E egWNPsIHnXZ6IlhJaT3MA2s6q8N7y1O7pQsywiKmbg2AzElG0sOctya6ONBjxZEzcZlfX1 fuRszcy9NM3v4BwxSKbj7sat3Of0JuZ+7LbZrvzsuZ9r0Io5E9VUcHOD4XDoGunP2bXSZi k6JL3LC6ys51cFV2OcKeIOS0lsCz9EDAqmEHx8lIlj/ERIaxy/SmQ+PiulPiZQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=bNcQxtOQ; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=bNcQxtOQ; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0EDEF1AF1E X-Spam-Score: 0.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: Le/II9JQQbpI On Tue, Mar 23 2021, David Bremner wrote: > 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. But the question if why doesn't to:undisclosed-recipients: or to:undisclosed-recipients work > > d