From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id d8jrCLy5gmCNjAAAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 14:12:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iBKAA7y5gmD3FgAAB5/wlQ (envelope-from ) for ; Fri, 23 Apr 2021 12:12:44 +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 C994D9EF1 for ; Fri, 23 Apr 2021 14:12:43 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4E8251FBD2; Fri, 23 Apr 2021 08:12:40 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id D74551FBC7 for ; Fri, 23 Apr 2021 08:12:37 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1E47D5FA96; Fri, 23 Apr 2021 08:12:36 -0400 (EDT) Received: (nullmailer pid 1304288 invoked by uid 1000); Fri, 23 Apr 2021 12:12:34 -0000 From: David Bremner To: Alexander Adolf , notmuch@notmuchmail.org Subject: Re: Two perceived query language imbalances In-Reply-To: References: Date: Fri, 23 Apr 2021 09:12:34 -0300 Message-ID: <87lf992o99.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: W4W23CCXS3PXVFDSJTPFEWZILIIIH7FE X-Message-ID-Hash: W4W23CCXS3PXVFDSJTPFEWZILIIIH7FE 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=1619179963; 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=O1uEBQQVoZjx/oCATeczTZfyEjtLnAQwOnWQ3jER9so=; b=YyH36mh1jY2t3qeDkgksSl82tk9wsT3N6xWfM0BIcojfyjc06tWD/HvpDFRiW5hYCxe7KC 9M1VmLGADIuCEX+yjBQ1wRF5YXcfc11lluSEA4Z24Yitz1FFTLiX4aiOi/5ctIvLD+fzCD I2XjP/GaDJCKjjiXMs+sZbIBPawZx1+5Jlbx4QJRlgrsz18jClA4zRhlFg+D3F0Ll3oCfH uu9DFkEny0+yCmJb5UNdnJqmBdDvaeUSXjA1Ab8IFeUan0twOfNp3wpvdiJ12gyulNeXbR rjwkb7JpW3SstEEfiDznAiutORM4rYg0CuZTN9kcF0dcX8dj7yNZxSe3jjZHkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619179963; a=rsa-sha256; cv=none; b=hkUVu4JYKj9DsgLutB1glC5t163h63cWY6eVCF8ti5UYgChGQQjdDsJQ7g/a2+mJJJntdl x868i86oEwPTCCVleg11LAhhunOXmN8BvIzQVkFDkT66/7w0li+Ppj2DpsFiKOcAcso9fe vX0NBMYJDDoBMPpstOeJuiPt5XiNg/LRCGaGadniytjwbUjOm/Z+GhtQMZoxEhFwuK60Ix zkqjxklIAwfqaebJVEra39UIxKx+qc7awRitBWOj+bWohtQIBifAM6L20PGzFHKNAZaVcU Z+DFK4eu+nzv0kOf9ksJ2+62SNMFr37oM9/2gcfwx+3i6QnMCiAs8VycoHTUqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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: -1.98 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: C994D9EF1 X-Spam-Score: -1.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: J8DccxygwsPX Alexander Adolf writes: > > Any technical reason for "from" having a regex search, but "to" not? Yes, it is purely technical. The regex support relies on the existence of a Xapian value slot for the field in question. It isn't clear what the time / space impact of adding another value slot would be. It is probably not unbearable, but someone needs to do the tests. >> id: or mid: or mid:// >> For id: and mid:, message ID values are the literal contents of >> the Message-ID: header of email messages, but without the '<', >> '>' delimiters. > > Similar thing here: "id:" and "mid:" can be used interchangeably, except > for regex search. Adding "id:/regex/" would seem most useful to me. > This was intentional, to avoid breaking existing scripts / internals that rely on treating id: as the primary key for the database. At least that was the concensus when we added it. It seems like one answer would be for you to just use mid: all the time, since it already has the behaviour you like. d