From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0F5C16DE092B for ; Sat, 1 Feb 2020 22:13:11 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; secure) header.d=kapsi.fi header.i=@kapsi.fi header.b="iYzhrpi5"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.943 X-Spam-Level: X-Spam-Status: No, score=-0.943 tagged_above=-999 required=5 tests=[AWL=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cKbrrchGYssu for ; Sat, 1 Feb 2020 22:13:07 -0800 (PST) Received: from mail.kapsi.fi (mail.kapsi.fi [91.232.154.25]) by arlo.cworth.org (Postfix) with ESMTPS id 0AF1B6DE0262 for ; Sat, 1 Feb 2020 22:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mNrS/tNOMkqKxsJ0j7Jx2/BQZN/OzKJStHF919GpRIQ=; b=iYzhrpi5FE4Yty0z8SVBFJQah0 rA89rsMr18bt+1cgw0n00HLy5ITPKY75/kuh0rA7f/n3OoY9rLie0w+UTA/lRlhjdW7+lCv0oEbSy 2vwM8EGrRt3vHRXMeOiBU0f4z0tjFTUaemrmLhnB3+9etZStuv0uARe1yxAjdILJ/GcQj72P3+b2j HN1IHgp0BVGjSYJxWhCmIG19aygTmN1Geha5IkW26L+8q/9ZAT2xWMyZvnMQ8cHvn8Y4/J+MkQTGl RL803gQ8vXGQVP/q7durzW7PPfkUHtB5HcRG2zDxyHB30Ab3UekBY6T0hUHTUF1OnJ2IdliCrIq+f vj7tsS/Q==; Received: from mobile-access-6df060-134.dhcp.inet.fi ([109.240.96.134] helo=mithlond) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iy8V8-0004Zl-Jv; Sun, 02 Feb 2020 08:12:58 +0200 From: Teemu Likonen To: Kevin Foley , notmuch@notmuchmail.org Subject: Re: Searching for an Exact Email Address In-Reply-To: References: Date: Sun, 02 Feb 2020 08:12:50 +0200 Message-ID: <87pnexbjq5.fsf@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-SA-Exim-Connect-IP: 109.240.96.134 X-SA-Exim-Mail-From: tlikonen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 06:13:11 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kevin Foley [2020-02-01T16:29:25-05] wrote: > I'm getting unexpected results when trying to search for messages > associated with an email address. > $ notmuch search to:"example@email.com" > My understanding is this should be treated as a phrase which means > that exact phrase will be searched for, is this correct? Double quotes are special characters in your shell and it interprets them so that notmuch doesn't get them. There are different ways in shell to escape special characters: to:\"example@email.com\" 'to:"example@email.com"' The shell built-in "set" is useful for testing parameters: $ set -- to:"example@email.com" to:\"example@email.com\" $ printf '%s\n' "$@" to:example@email.com to:"example@email.com" =2D-=20 /// OpenPGP key: 4E1055DC84E9DFF613D78557719D69D324539450 // https://keys.openpgp.org/search?q=3Dtlikonen@iki.fi / https://keybase.io/tlikonen https://github.com/tlikonen --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFEBAEBCgAuFiEEkhZiiC54Bnj5a16Skzo1BB5+rVEFAl42aGIQHHRsaWtvbmVu QGlraS5maQAKCRCTOjUEHn6tUeIvB/0UXNrX99XUji2GyeXs7AM0cxrHMs+nK6in N2qtAH4TlLd9BykECK9RIjG+RQMLPmho6aG2zYAQxW5SwuXhLktKjD++pnb0sN3W MAxo+wIMR7bXrfSJ2vx4nUAZunsXQLr2UaU36Z2Sb8WwDwZ5bCpGXLlsBW20Tb8/ 1azxbQDp8m8SC3ObzmAdBdLgl2T9JmWhhxcRQ3IRzRNZFz85OVWA9e+qZJqD/8hz XMiAgOPPOYTLiyXrwFtdTRnwKbcZp2PRmgv1/t7LRIxCcorH64CG2+avFsvtoDM7 6r1fwKNs0OwKEUak4FGecsBIOe2DcSZhxpwQ4qkYk2JTn+tl1f+HiIYEARYIAC4W IQTJW2wqtelxC1gHdbitnXWr7pTCcwUCXjZoaRAcdGxpa29uZW5AaWtpLmZpAAoJ EK2ddavulMJzoZkBAL/4d5Zbf1q7dwZheiScywDSddXCM2UrUeCzjNN7ysxoAP9/ GeJyUWcgBHGMf/KVsVSWdLRtRnpGvmh13Z0oHyiDCg== =wz/y -----END PGP SIGNATURE----- --=-=-=--