Is default email address in notmuch setup / lib useful?

2021-09-05 Thread David Bremner


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
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org


Re: v5 sexp query parser

2021-09-05 Thread David Bremner
David Bremner  writes:

>
> I don't plan on applying this for 0.33, but will probably go ahead and apply 
> something like this series to master soon after the 0.33 release. So now is 
> the time to bikeshed.
>

As promised, I have applied this series to master. I don't think it
should introduce bugs for those not using the new query parser, but it's
a moderate sized change (maybe 1000 lines of new code, and 1500 lines of
tests and docs), so one never knows.
___
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org