Re: a tutorial on notmuch-git?

Subject: Re: a tutorial on notmuch-git?

Date: Wed, 19 Feb 2025 10:34:52 +0100

To: Alan Schmitt

Cc: Lars Kotthoff, notmuch

From: Emmanuel Beffara


Hello,

De Alan Schmitt le 18/02/2025 à 08:58:
> On 2025-02-17 08:58, Lars Kotthoff <lists@larsko.org> writes:
> > I use muchsync (https://www.muchsync.org/), which also copies the mail files. 
> > Works great.
> 
> Thank you for the suggestion. I did considered muchsync, but I ruled
> against it for two reasons. First, it is an extra program that is not
> packaged on my system (macos) so I need to compile it (I agree it is a
> small reason and I could attempt it, but my previous experience with
> compiling things on the mac was not great). Second, and more
> importantly, it seems that muchsync has to copy the mail files, so only
> one machine should fetch mail. This is a showstopper for me, and looking
> at previous discussion about it
> (https://yhetil.org/notmuch/87mup3bqmh.fsf@ra.horus-it.com/t/) did not
> help.

I never tried muchsync for the exact same reasons. My situation is that I want
to use notmuch efficiently on two laptops, without using a main machine. Also,
I want to keep traditional IMAP and webmail access reasonably usable and
integrated in the workflow.

For this reason I wrote my own tag synchronisation tool: I essentially store
a dump of the tag set in an SQLite database, with some extra information to
allow efficiently synchronising this dump with the notmuch database. Then I
keep this SQLite file synchronised between machines (I use rsync on a personal
server, but anything else would work). This way I fetch mail locally on each
machine (using mbsync) and integrate tag synchronisation in the post-new hook.

The code is available on <https://framagit.org/manu/notmuch-tools> and it
includes other small tools I wrote for my personal usage. I have been using
these tools mostly unchanged for several years and have never lost any data. I
never advertised them publicly until now, for a combination of prudence and
laziness, but I would be happy to have feedback from other users.

-- 
Emmanuel
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: