moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option]
Jameson Graef Rollins
jrollins at caltech.edu
Sun Dec 8 09:12:55 PST 2019
On Sun, Dec 08 2019, Jorge P. de Morais Neto <jorge+list at disroot.org> wrote:
> Em [2019-11-22 sex 10:43:40+0800], Daniel Kahn Gillmor escreveu:
>
>> Better than documenting, i'd be happy if we would add a "notmuch config
>> edit" subcommand, which handles the above sequence for you, invoking
>> $EDITOR at the appropriate time.
>>
>> The only caveat i see there is if the end user wants to inject comments
>> in the config file, which would then be stripped out in between these
>> invocations. perhaps someone who finds these comments in config files
>> super important could propose a way to stash them in the db and recover
>> them during "notmuch config edit" as well :)
>
> I sync my two Notmuch configuration files -- personal notebook and
> workplace desktop -- over Unison via a USB flash drive. This way, when
> I want to reconfigure Notmuch in one machine, I have the other machine's
> configuration as reference. However, I do not sync the entire Notmuch
> databases because, since they are big and change frequently, I suppose
> they would wear the USB flash drive and also increase the
> synchronization time.
>
> Thus for my use case it would be useful if "notmuch config edit" could
> automatically keep a perennial text file reflecting the configuration in
> the database. That text file would then be synchronized by Unison.
You can already use 'notmuch config list' to dump every configuration
item to stdout. Would that be sufficient for personal synchronization
purposes.
jamie.
More information about the notmuch
mailing list