From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8GMIIT+J5WGCOwAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 16:20:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4C1hHT+J5WEOIAAAauVa8A (envelope-from ) for ; Mon, 17 Jan 2022 16:20:31 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 353873EB2F for ; Mon, 17 Jan 2022 16:20:26 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A9BF75F407; Mon, 17 Jan 2022 15:20:22 +0000 (UTC) X-Greylist: delayed 895 seconds by postgrey-1.36 at yantan; Mon, 17 Jan 2022 15:20:19 UTC Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0601E5E016 for ; Mon, 17 Jan 2022 15:20:19 +0000 (UTC) Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:105:465:1:3:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4JcwZV2FCTzQjf1; Mon, 17 Jan 2022 16:20:18 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de From: Kevin Foley To: David Bremner , notmuch@notmuchmail.org Subject: Re: Handling Email Addresses Without Name In-Reply-To: <87lezhxidg.fsf@tethera.net> References: <87pmouyoea.fsf@kevinjfoley.me> <87lezhxidg.fsf@tethera.net> Date: Mon, 17 Jan 2022 10:20:10 -0500 Message-ID: <87k0eyz8wl.fsf@kevinjfoley.me> MIME-Version: 1.0 Message-ID-Hash: FIWRINPMMWJWD2N5XOJZFYJBGZW4YYCN X-Message-ID-Hash: FIWRINPMMWJWD2N5XOJZFYJBGZW4YYCN X-MailFrom: kevin@kevinjfoley.me 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642432827; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=8unzobHDWuoq386bQ1uKBxEWugY/KNagcETOG2uQxyY=; b=pWvYSSfxg5hRLROMylhe+AMZAM4gt4VdF0e7xGhMEufF4irG03nDXRizzcChpXNidBh+xz XZcFUUOmVF5mytBofDATZs8Yuj/N1e5JO06xcfrTxLMVfeZr7fk19t6o7MQ3uOBeqLCfvJ D/5Gd1ug/YdHsxXBBSYQZCAC9sgDq7EDWeAsBfn4jELNi3tWk/i/fLGU2NF3tZZ6BxccIq kcMjKDBsacnX6nlvA/Z5pZevU5H9/kpscy0Snw/ZHKJQaOX1+iDaOS23YgHZvGgjZO73aU Ly0bz1rQ5h7+HzMn2pRF2Af6v2W9N03TxhfmmEqPn4um/OHaDKGRLYDbQ6wp6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642432827; a=rsa-sha256; cv=none; b=TuzHGWM8YLjwCSHH/9n8CYLrfBTEU2WLwBjb5ERHIRMg2xXc4IqMwZ/5Lez3iwxf7D/Ckq TUqfBvK9d0Y5Kb82/tfktARtQBVccYg7iVR79mg+UUHJzGoMV6SjyrTAmV6tkFqfzlEQY+ 8RBJ6DXsCothjjOnBO4zLVjhH7W+AMdvOMcXwtxVjbiiptaSRw3+ekvY8mY7suXhGLKYJa BGlHQ6JsF1EdMHkkt43ZYnT9Z3ND3StTwGqGtzCYfQtZApTFQb1HVRYtBvA4zrAMYCH2/z 0cpmH2iwAjmnYIODz/v5WOf2Mf5XXnqeo6LNMqbnLMUJKnkLxF6Gu1kTNeWArA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 353873EB2F X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: hVvTLsSnt3ye David Bremner writes: > If you have want you can define a query > > $ notmuch config set query.John from:jdoe@example.com > > Then you can use > > $ notmuch search query:John This isn't ideal as I'd prefer not to have to remember to use a query instead of "from". However, I didn't know about the predefined query feature so that's cool to see. > Xapian has a synonym facility [1], but it is not currently used by > notmuch. This would work well for this particular application, but > (unlike query) it ORs the original term into the expansion (as makes > sense for synonyms). That would make it less useful for cases like > "from:me", where the query would match a literal "me" in the from > field. Thanks to Apple's cloud thingy, that actually matches quite a > lot. > > [1]: https://xapian.org/docs/synonyms.html This could be interesting. I actually do something write now in my post new hook script where I get all versions of my email address (I at one time used an address based on each website) and update the value of `user.other_email`. If there was the ability to assign synonyms I might be able to do something similar. It would depend what the interface was like I suppose. For example, what if I wanted to connect "John", "John Doe", and "Doe" to "jdoe@example.com"? I'm guessing based on the Xapian docs that would end up being 3 different calls. Kevin