From: Chris Coutinho <chrisbcoutinho@gmail.com>
To: "Jorge P. de Morais Neto" <jorge+list@disroot.org>
Cc: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
Georg Faerber <georg@riseup.net>,
notmuch@notmuchmail.org
Subject: Re: compacting the notmuch database through systemd
Date: Sun, 8 Dec 2019 16:15:25 +0100 [thread overview]
Message-ID: <CAG+YirRob7i=dS3SFBegm4FCoA9ZE6_EwNa_323SZBDSmdd3kg@mail.gmail.com> (raw)
In-Reply-To: <87d0cyc27p.fsf@disroot.org>
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
next prev parent reply other threads:[~2019-12-08 15:15 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
2019-12-08 14:38 ` Jorge P. de Morais Neto
2019-12-08 15:15 ` Chris Coutinho [this message]
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='CAG+YirRob7i=dS3SFBegm4FCoA9ZE6_EwNa_323SZBDSmdd3kg@mail.gmail.com' \
--to=chrisbcoutinho@gmail.com \
--cc=dkg@fifthhorseman.net \
--cc=georg@riseup.net \
--cc=jorge+list@disroot.org \
--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).