unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Georg Faerber <georg@riseup.net>, notmuch@notmuchmail.org
Subject: Re: compacting the notmuch database through systemd
Date: Fri, 06 Dec 2019 14:41:22 -0500	[thread overview]
Message-ID: <874kyd1btp.fsf@fifthhorseman.net> (raw)
In-Reply-To: <20191205113809.GR19894@debian>

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

On Thu 2019-12-05 11:38:09 +0000, Georg Faerber wrote:
> On 19-12-05 08:29:44, Jorge P. de Morais Neto wrote:
>> But the user might have changed ~NOTMUCH_CONFIG~. On my Debian
>> install it is "~/.config/notmuch/config" (XDG compliant).
>
> It's possible to specify multiple conditions, and join these via OR:
>
> ConditionPathExists=|~/.notmuch-config
> ConditionPathExists=|~/.config/notmuch/config

I think we want to use %h instead of ~, but i haven't done much testing
(see SPECIFIERS in systemd.unit).

As for the variations, i'm kind of of a mind that people who deviate
from the defaults should need to maintain their own deviance explicitly,
rather than trying to accomodate a non-default path in shipped config
files.  For example, "systemctl --user edit notmuch-compact.timer" helps
you drop in the appropriate override/modification.

for that matter, do we want ConditionPathExists to constrain the .timer
or the .service (or both)?

And, what if the config file exists but the database has never been
created?

I've always felt like it was a bit weird that "notmuch setup" would
write the config file without at least initializing the database (though
perhaps this falls back into my general config file vs. database
concerns)

        --dkg


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2019-12-06 19:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-01 20:52 compacting the notmuch database through systemd Antoine Beaupré
2019-12-02 13:29 ` Antoine Beaupré
2019-12-04 18:09 ` Daniel Kahn Gillmor
2019-12-04 19:51   ` Antoine Beaupré
2019-12-05 11:29     ` Jorge P. de Morais Neto
2019-12-05 11:38       ` Georg Faerber
2019-12-06 19:41         ` Daniel Kahn Gillmor [this message]
2019-12-08 14:38           ` Jorge P. de Morais Neto
2019-12-08 15:15             ` Chris Coutinho
2019-12-08 16:56             ` David Bremner
2019-12-12 22:44               ` Tomi Ollila
2019-12-05 17:02       ` Antoine Beaupré

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=874kyd1btp.fsf@fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=georg@riseup.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).