From: Michael J Gruber <michaeljgruber+grubix+git@gmail.com>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: notmuch@notmuchmail.org, Tobias Waldekranz <tobias@waldekranz.com>
Subject: Re: inbox-update: new competition of notmuch-lore
Date: Mon, 17 Apr 2023 12:23:43 +0200 [thread overview]
Message-ID: <CAA19uiTA-mQ1nTPs14-Vhy0Q6Y6DTbHKVGtpNdrCMpCX3ueV=A@mail.gmail.com> (raw)
In-Reply-To: <643ca044d2acc_13ca5294f@chronos.notmuch>
Hi Felipe
> I'm moving from mbsync to public-inbox and I find there aren't many tools to
> make it work with notmuch.
Looking at that, too.
> I gave a try to notmuch-lore [1] but I found it too slow and had a couple of
> issues.
>
> So I wrote my own script to convert public-inbox mailing lists to Maildir
> format: notmuch-tools/inbox-update [2].
>
> It's much faster at the initial clone, it deals with deleted mails, and YAML is
> a much better configuration format.
Looking at both scripts: Is the speed-up mainly due to `git cat-file`
vs. `git show`?
> Also, you can configure which epochs you want to fetch (notmuch-lore fetches
> all of them).
>
> One thing it doesn't yet do is trim the repository once the mails have been
> converted, but that's probably easy to add later on.
What kind of trimming are you thinking about here? Partial history?
I guess this shows that public-inbox's repo format is simply not the
best choice for the purpose of mail readers. It is optimised for other
uses, and I always wondered why they use a non-bare repo at all. That
single file path m at the root creates absolutely meaningless diffs.
And the commit message doubles the info which is present in the blob.
notes-ref could have served better for inspiration of public-inbox.
(Barking up the wrong tree, I know.)
There are even tools in the public-inbox eco system which feed that
info into a xapian db, though not notmuch-like, as if notmuch hadn't
existed already.
What I'm dreaming of is a notmuch "storage backend" which is git
object db based rather than maildir based, and compatible with
public-inbox (at least with the use case, i.e. v3 or v4...). I mean -
why do we need a checkout of basically immutable files which are
stored in blobs already, just so that notmuch can index them?
We need them for the MUAs, I know, and we would need a solution for
them, too. Or simply a tree in public-inbox which allows clients to
use a mere checkout ...
Cheers,
Michael
next prev parent reply other threads:[~2023-04-17 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 1:26 inbox-update: new competition of notmuch-lore Felipe Contreras
2023-04-17 10:23 ` Michael J Gruber [this message]
2023-04-17 12:30 ` Felipe Contreras
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='CAA19uiTA-mQ1nTPs14-Vhy0Q6Y6DTbHKVGtpNdrCMpCX3ueV=A@mail.gmail.com' \
--to=michaeljgruber+grubix+git@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=notmuch@notmuchmail.org \
--cc=tobias@waldekranz.com \
/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).