From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CDY+LjFGNWGjdQAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 00:35:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uG3EKTFGNWGVQwAAB5/wlQ (envelope-from ) for ; Sun, 05 Sep 2021 22:35:29 +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 0613F6897 for ; Mon, 6 Sep 2021 00:35:29 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 641421FB3E; Sun, 5 Sep 2021 18:35:25 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id AD34D1FA21 for ; Sun, 5 Sep 2021 18:35:23 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 31AF75FD5C; Sun, 5 Sep 2021 18:35:23 -0400 (EDT) Received: (nullmailer pid 2771816 invoked by uid 1000); Sun, 05 Sep 2021 22:35:20 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Is default email address in notmuch setup / lib useful? X-List-To: notmuch Date: Sun, 05 Sep 2021 15:35:20 -0700 Message-ID: <87sfyibqhj.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 5RFCW23ZLMUQVBZ7HREUF3XQMHK5YJU4 X-Message-ID-Hash: 5RFCW23ZLMUQVBZ7HREUF3XQMHK5YJU4 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=1630881329; 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=4faiLFl+9mo7BqxeAgFamFpFUZX81c3APuDZ3UDzP9Q=; b=cduPjo/3l9heNG8f0xWtIrPjlsAnbNfQZAcp/yrZKV2wmkKzZMUjPSXKzncm17Ub6oJC+q 53wS/KPuKtLSSMdqQh0j98WaAcU7+laA4oGlARkCh0d+PNUiwhbQHlJoYpVVn+HtLpLIll 6suAFcNop8pb7hdSBk/VQpsGDu0ioqpXQGG53NfoFRaF2JbOgWnQJEqnEOk6IWzlMsE9CZ YsRu39RHQUn7DJTRtBgGaj7V5ka23aoEtI7hamqu0lKC/sgddJFM1j3jdCNSs+AW4uExck FpkjGcqI80BBYz5Cs5y0fUdpFGRlMm+1AEtV9uqgjVSgONQM4ZW89HJjwL3jGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630881329; a=rsa-sha256; cv=none; b=WjY5UOkYduO4VdG0TnUD2QIQQuqfh0XGAayz332sij6hrUm7TO25D8hh2Yh9RiIeskAeya PZPLYjZfEx5rl2taZBe/XR/VDYgQk+aUtqG4MIuzWz/beNcbD6RmocMHvTENw1bGEOlsSV OkJMSUqy7oUvsiDtMQwk4kjiXfjD+IUvMCJNKbw/Xvyd3d5jWb37iKL0UAjQ3u6u2t0Q1e qJvBzw2XqMv+p+dMYe6jaSI3doyqeqzA4CdhAWGA2eghKBgngEyPL9bXMS+N73+nbX52cG WUGKbX36cDvDmgvc9yI5V7Q/+fZAYWqb+fc/eB3RrysdMwrIfoEtj0ZUgZkRQw== ARC-Authentication-Results: i=1; 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-Spam-Score: -1.08 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: 0613F6897 X-Spam-Score: -1.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5jbbEOnk7LI1 Currently notmuch tries to make a guess for a default email address based on the "fully qualified hostname" of the host it is running on. This is roughly equivalent to running "hostname -f". I have observed two things 1) It's a bit flaky. There are various functions (gethostbyname, getaddrinfo) that work in subtly different ways. We've tried three different setups in the test suite to test this, and none of them work everywhere. 2) It doesn't seem that useful. The number of people running notmuch on hosts that can (and want to) receive email seems pretty small. Furthermore, it's not obvious we're going to get the right name. For example on my laptop it returns "zancas.local", which is only routable on my home LAN. I could be wrong about 2, though. If you actually find this to be a useful feature, please reply to this thread. If people agree it's generally not useful, I'd propose to replace it with some simpler default like "localhost" [1], equally useful to for testing, but simpler to implement and test. [1]: required by at least RFC6761