WIP: git-remote-notmuch

Subject: WIP: git-remote-notmuch

Date: Wed, 28 Aug 2024 08:45:53 -0700

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


I wanted to try out Felipe's idea of using a remote helper to replace
/ augment the existing notmuch-git script, but I didn't want to
require language bindings. Porting Felipe's ruby script to C led to
a predictable amount of increase in the number of lines of code, but
it seems to work. There are a couple of points to note

0) Currently this is not used by notmuch-git at all.

1) Felipe's original script didn't have an explicit license grant, but
I added the standard notmuch GPL3+ license to my rewrite. Hopefully
that is OK for Felipe.

2) I renamed to git-remote-notmuch, so the corresponding URLs start with
   notmuch:: instead of nm::
   
3) The original script took a path to mail_root, but this doesn't
   really cover the possible split configurations; in particular it
   doesn't handle my (XDG) layout. The current code just looks for the
   "default" notmuch setup, and ignores the URL.  I am open to ideas
   for how a notmuch URL should look like. I'd imagine they
   should have the profile in them, but I'm not sure how much flexibility we need / want to suppot.
   
4) the code is a bit rough and ready, with error handling mainly
consisting of asserts.

5) There is currently no documentation, see test/T860 and
perf-test/T08 for hints.

6) The remote helper is potentially complimentary to git-notmuch/nmbug
as it provides a more standard (to git users) interface.
git-notmuch could probably transition to a wrapper.


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

Thread: