From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WMxbIMqygmADTgAAgWs5BA (envelope-from ) for ; Fri, 23 Apr 2021 13:43:06 +0200 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 AOHuG8qygmBuRgAAbx9fmQ (envelope-from ) for ; Fri, 23 Apr 2021 11:43:06 +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 60E7911EE1 for ; Fri, 23 Apr 2021 13:43:04 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B578E20650; Fri, 23 Apr 2021 07:42:59 -0400 (EDT) X-Greylist: delayed 832 seconds by postgrey-1.36 at nmbug; Fri, 23 Apr 2021 07:42:56 EDT Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mail.notmuchmail.org (Postfix) with ESMTPS id ED0E11FBD2 for ; Fri, 23 Apr 2021 07:42:56 -0400 (EDT) Received: from [46.244.221.208] (helo=condition-alpha.com) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1lZtze-0005Fr-LQ for notmuch@notmuchmail.org; Fri, 23 Apr 2021 13:29:06 +0200 Message-Id: From: Alexander Adolf To: notmuch@notmuchmail.org Subject: Two perceived query language imbalances Date: Fri, 23 Apr 2021 13:29:01 +0200 MIME-Version: 1.0 X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Message-ID-Hash: 4JSGYPHHF5NEQXTXRLBYOGGNBAXLDZSL X-Message-ID-Hash: 4JSGYPHHF5NEQXTXRLBYOGGNBAXLDZSL X-MailFrom: alexander.adolf@condition-alpha.com 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=1619178186; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=K3iIU0m2MerWXUhW/0vVr8frEKZ41iX/8sheAs5MEKY=; b=mIDThYV5M+YPfAB2vSTQlnMSy6coXTnsEJ+/zdLDsjhG1cv+WqaLR//iv5MPFvVbt5HPzy QRjrvxYrZ7dOaABYSqbY2ATyfUklCJT7BpafWOxgxre6RwaOTP3xqPTGH9UgIRHeLSHbI7 4eY6oeGgf1j0cg+cWSPJGawVq+CXFTXQXhMl5vJG22j0KTovuaw9vEfnqjR+ti3pJnLokD P4Aeny1tJn38BaThd0qoOMV4T87QlRi5PBbn+qEQur7IglVpJD4iNI+WageCKUxHx8yYAi EyqwjGPMa/o2JgxFHfLxGrjus9DNGgnqSfgMfqA8bcsUJnBW7hsAgIxFNdgLtQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619178186; a=rsa-sha256; cv=none; b=TIwNh3IONYEWhvVVNDEVvj2a7f4MP44youU+RdAPVFFQKLmBvwgGxbu0jGvexXmPLuqxj0 23o+rzWGP8PJrLPJ2WEgdN5/d88yHF/hBV25nLYvNATH5brEPe0dM8PKbdNItH5Y8AJi3j wvtnFWse8DaMEYmpzE6eoXNFkTovjjTs5RiMvUwCgxrFPU9A5KxfBgZ+w8Ccp4bUn5khLh URO0eKJxwsGe7D3EAQ2kYf4I0crxNvMlfKMJRISt97RZmjPio2xodE4aF5PQfAhW9SFsdu aNJyCBergq8Lnzf2CnEwGAK0eVR4lju0iic3DdW0h8kzHhHKhiA2YatbF7o8BQ== 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.02 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: 60E7911EE1 X-Spam-Score: -2.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: Xk1F1Ex1RoTy Dear notmuch developers, Quoting from `man notmuch-search-terms`: > from: or from:// > The from: prefix is used to match the name or address of the > sender of an email message. > > to: > The to: prefix is used to match the names or addresses of any > recipient of an email message, (whether To, Cc, or Bcc). Sorely missing to:/regex/ here. I was banging my head against this the other day as I was searching for messages I had sent to various folks at a specific organisation, but just couldn't remember whether their addresses were "organisation.tld", or "organisationgroup.tld", or "organisationlabs.tld", or similar. The workaround was to search for a specific person's name, open a message, figure the email address scheme, and then issue another search with that stem. "to:/regex/" would have saved my day. Any technical reason for "from" having a regex search, but "to" not? > 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. The query language should be the last thing to be getting in my way, I think. Many thanks in advance and looking forward to your thoughts, --alex