unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* WIP: git-remote-notmuch
@ 2024-08-28 15:45 David Bremner
  2024-08-28 15:45 ` [PATCH 1/5] util: refactor sync_dir and mkdir_recursive David Bremner
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: David Bremner @ 2024-08-28 15:45 UTC (permalink / raw)
  To: notmuch

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-28 21:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 15:45 WIP: git-remote-notmuch David Bremner
2024-08-28 15:45 ` [PATCH 1/5] util: refactor sync_dir and mkdir_recursive David Bremner
2024-08-28 15:45 ` [PATCH 2/5] cli: start remote helper for git David Bremner
2024-08-28 15:45 ` [PATCH 3/5] cli/git-remote: add support for import command David Bremner
2024-08-28 15:45 ` [PATCH 4/5] cli/git-remote: add export command David Bremner
2024-08-28 15:45 ` [PATCH 5/5] cli/git-remote: add time performance test David Bremner
2024-08-28 21:11 ` WIP: git-remote-notmuch David Bremner

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).