From: David Bremner <david@tethera.net>
To: Jani Nikula <jani@nikula.org>, Shea Levy <shea@shealevy.com>,
notmuch@notmuchmail.org
Subject: Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
Date: Thu, 18 Aug 2016 07:52:58 -0300 [thread overview]
Message-ID: <87oa4qqrg5.fsf@zancas.localnet> (raw)
In-Reply-To: <874m6no4mm.fsf@nikula.org>
Jani Nikula <jani@nikula.org> writes:
> Then there's the annoying detail that this'll change the format of the
> config from a semicolon separated list to a comma separated list. This
> means switching from using g_key_file_get_string_list() to
> g_key_file_get_string(). But we also need to have backward compatibility
> somehow. One option is to add a new config option (didn't I just frown
> on adding new ones?) that would replace all of user.name,
> user.primary_email, and user.other_email, making the first in the list
> the primary one. So we could check if, say, user.email is present, and
> use that for all of the name/primary/other configuration, falling back
> to the separate fields otherwise.
I guess if you wanted to be very friendly, you could support "virtual
keys" for notmuch config so that "notmuch config get user.email" still
works. Maybe that's already what you intend to suggest there. We already
have config keys that are not stored in .notmuch-config
I do agree that have two parallel arrays that the user is supposed to
keep in sync is a classic bad interface design (we basically introduce
structs/OOP by saying that's bad ;)). Other than that I'm open to what
the config options look like, since setting them up is a rare operation.
I think the only places in notmuch these config options are used is in
notmuch-reply, and in the emacs client.
It occurs to me that another option is some kind of versioning of config
files, and yet another upgrade process (since we rewrite the whole
config file anyway). This might be even more tedious to write, but at
least the logic of dealing with different config file versions would all
be in one place.
> This is also a safe option in case some other software uses the
> configuration options directly.
I guess there's no safe option if people read the file directly, but I
keep telling people not to do that ;).
> Anyway, this will be slightly tedious to code, and some of the changes
> might be a bit controversial, so I suggest waiting until we get feedback
> from others first. (David, I'm looking at you!)
not sure if these are the droids^Wfeedbacks you are looking for.
d
prev parent reply other threads:[~2016-08-18 10:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-09 20:55 [PATCH 0/4] Allow specifying alternate names for addresses in other_email Shea Levy
2016-08-09 20:55 ` [PATCH 1/4] Add user.other_name property to associate names with other_email Shea Levy
2016-08-09 20:55 ` [PATCH 2/4] notmuch-reply: respect users.other_name in From Shea Levy
2016-08-09 20:55 ` [PATCH 3/4] Add documentation for user.other_name Shea Levy
2016-08-09 20:55 ` [PATCH 4/4] Update NEWS " Shea Levy
2016-08-13 11:58 ` [PATCH 0/4] Allow specifying alternate names for addresses in other_email Jani Nikula
2016-08-14 12:43 ` Shea Levy
2016-08-14 13:35 ` Jani Nikula
2016-08-14 13:45 ` Jani Nikula
2016-08-18 10:52 ` David Bremner [this message]
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=87oa4qqrg5.fsf@zancas.localnet \
--to=david@tethera.net \
--cc=jani@nikula.org \
--cc=notmuch@notmuchmail.org \
--cc=shea@shealevy.com \
/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).