unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Is default email address in notmuch setup / lib useful?
@ 2021-09-05 22:35 David Bremner
  2021-09-06 17:14 ` Alexander Adolf
  0 siblings, 1 reply; 7+ messages in thread
From: David Bremner @ 2021-09-05 22:35 UTC (permalink / raw)
  To: notmuch


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-09 20:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-05 22:35 Is default email address in notmuch setup / lib useful? David Bremner
2021-09-06 17:14 ` Alexander Adolf
2021-09-06 20:39   ` Tomi Ollila
2021-09-07  1:26     ` David Bremner
2021-09-07  7:57       ` Tomi Ollila
2021-09-09 12:51         ` [PATCH] lib: use 'localhost' rather than fqdn for default mail address David Bremner
2021-09-09 20:09           ` Tomi Ollila

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).