Re: compacting the notmuch database through systemd

Subject: Re: compacting the notmuch database through systemd

Date: Sun, 8 Dec 2019 16:15:25 +0100

To: Jorge P. de Morais Neto

Cc: notmuch@notmuchmail.org, Daniel Kahn Gillmor

From: Chris Coutinho


On Sun, Dec 8, 2019 at 3:38 PM Jorge P. de Morais Neto
<jorge+list@disroot.org> wrote:
>
> Em [2019-12-06 sex 14:41:22-0500], Daniel Kahn Gillmor escreveu:
>
> > 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.
>
> But ~/.config is the XDG standard, so maybe it deserves special
> consideration.
>
> Regards
> --
> - <https://jorgemorais.gitlab.io/justice-for-rms/>
> - I am Brazilian.  I hope my English is correct and I welcome feedback.
> - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
> - Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
> - [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

I execute `notmuch new` after an `offlineimap` sync using `systemd`,
and the way I handle non-standard paths is by specifying the
NOTMUCH_CONFIG as an environmental variable like this:

    $ cat ~/.config/systemd/user/offlineimap-oneshot.service.d/override.conf
    [Service]
    Environment="NOTMUCH_CONFIG=/home/chris/.config/notmuch/config"
    ExecStartPost=/usr/bin/notmuch new

In this case I'm using `systemd` override functionality - you might be
able to use it for compacting your `notmuch` database using `systemd`
as well.

Regards,
Chris
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: