unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Alexander Adolf <alexander.adolf@condition-alpha.com>,
	David Bremner <david@tethera.net>,
	notmuch@notmuchmail.org
Subject: Re: Is default email address in notmuch setup / lib useful?
Date: Mon, 06 Sep 2021 23:39:29 +0300	[thread overview]
Message-ID: <m2y2895tha.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <e8f0ffbf0a5a093348d56a53a87187cc@condition-alpha.com>

On Mon, Sep 06 2021, Alexander Adolf wrote:

> David Bremner <david@tethera.net> writes:
>
>> 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
>> [...]
>> 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.
>> [...]
>
> I'd support David's suggestion to just default it to "localhost".
>
> If an unsuspecting user tries to send their first email with notmuch,
> the current behaviour could reveal information about the user's local
> infrastructure in the message. "localhost" is a much safer default, IMO.

Agreed. I tried to look whether we could get rid of user.name and
user.primary_email config values (and then emacs/other email clients
would need to resolve that information elsewhere). I don't know if
that can ever be done (or should), but the the current beaviour
is flaky (and I agree potentially insecure).


>
>   --alex

Tomi

  reply	other threads:[~2021-09-06 20:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2y2895tha.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=alexander.adolf@condition-alpha.com \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).