From: Eric Wong <firstname.lastname@example.org> To: Bjorn Helgaas <email@example.com> Cc: Joey Pabalinas <firstname.lastname@example.org>, email@example.com, firstname.lastname@example.org, Linus Torvalds <email@example.com>, Greg Kroah-Hartman <firstname.lastname@example.org>, Konstantin Ryabitsev <email@example.com>, Eric Biederman <firstname.lastname@example.org>, Jasper Spaans <email@example.com> Subject: Re: [RFC] LKML Archive in Maildir Format Date: Thu, 7 Mar 2019 03:44:53 +0000 Message-ID: <20190307034453.pbhmllhmsjy6kvtc@dcvr> (raw) In-Reply-To: <CAErSpo6QTdABwBx-nvkmJyv7JHb95azapwLtBf++Ved7=UpMWA@mail.gmail.com> Bjorn Helgaas <firstname.lastname@example.org> wrote: > On Tue, Mar 5, 2019 at 5:26 PM Eric Wong <email@example.com> wrote: > > Bjorn Helgaas <firstname.lastname@example.org> wrote: > > > > Any pointers? I guess there's no mutt backend that can read a > > > public-inbox archive directly? > > > > There's mutt patches to support reading over NNTP, so that > > works: > > > > mutt -f news://$INBOX_HOST/$INBOX_NEWSGROUP > > Neomutt includes NNTP support, so I tried this: > > neomutt -f news://nntp.lore.kernel.org/org.kernel.vger.linux-kernel > > which worked OK but (1) I only see the most recent 1000 messages and > (2) obviously isn't reading a *local* archive. Neomutt took about 45 > seconds to start up over my wimpy ISP. > > I assume I could probably have a local archive and run a local NNTP > server and point neomutt at that local server. But I don't know how > full-archive searching would work there. Right. AFAIK there isn't a good solution for search via NNTP. > > I don't think mutt handles mboxrd 100% correctly, but it's close > > enough that you can can download the gzipped mboxrd of a search > > query and open it via "mutt -f /path/to/downloaded/mbox.gz" > > > > curl -XPOST -OJ "$INBOX_URL/?q=$SEARCH_QUERY&x=m" > > I got nothing at all with -XPOST, but this: Ah, I guess nginx (or something in AWS) rejects POST without Content-Length headers. Adding "-HContent-Length:0" to the command-line with -XPOST works for lore. > curl -OJ "https://lore.kernel.org/linux-pci/?q=d:20190301..&x=m" > > got me the HTML source. Nothing that looks like mboxrd. I assume Right. The "x=m" requests an mbox; but it's only available via POST requests (to prevent search engine spiders from wasting time on non-HTML content). With the HTML output in a browser, the "mbox.gz" button makes the POST request and allows you to download the mbox. > this is stupid user error on my part, but even with that resolved, it > wouldn't have the nice git fetch properties of the git archive, i.e., > incremental updates of only new stuff, would it? You could bump d:YYYYMMDD (there's also "dt:" for date-time if you need more precision). > I think my ideal solution would be a mutt that could read the git > archive directly, plus a notmuch index. But AFAIK, mutt can't do > that, and notmuch only works with one message per file, not with the > git archive. > > Something that might work would be to use Konstantin's "git archive to > maildir" hint but shard into a bunch of smaller maildirs instead of > one big one, then have notmuch index those, and use mutt or vim with > notmuch queries instead of having it read in a maildir. Small Maildirs work great, but large ones fall over. I don't think having a bunch of smaller Maildirs would help notmuch since notmuch still needs to know each file path. The only way I could see notmuch/Maildir working well is to keep the overall number of messages relatively small. One of my longer-term goals is to write a mairix-like tool in Perl which works with public-inbox archives; but I barely have enough time for public-inbox these days :< mairix works with gzipped mboxes, which is great for large archives; but the indexing falls over since it rewrites the entire search index every time. SSDs have died as a result :< > But I feel like I must be missing the solution that's obvious to > everybody but me. Nope, you're not alone :) There's not a lot of mail software which can handle LKML-sized histories efficiently.
prev parent reply index Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-12-16 19:06 Joey Pabalinas 2018-12-16 19:17 ` Joe Perches 2018-12-16 19:21 ` Joey Pabalinas 2018-12-16 19:55 ` Konstantin Ryabitsev 2018-12-16 21:55 ` Joey Pabalinas 2018-12-18 20:26 ` Jasper Spaans 2018-12-18 22:53 ` Joey Pabalinas 2018-12-16 19:46 ` Konstantin Ryabitsev 2018-12-16 19:53 ` Joey Pabalinas 2019-01-04 1:35 ` Eric Wong 2019-03-05 20:48 ` Bjorn Helgaas 2019-03-05 23:26 ` Eric Wong 2019-03-06 20:50 ` Bjorn Helgaas 2019-03-07 3:44 ` Eric Wong [this message]
Reply instructions: You may reply publically 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 * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190307034453.pbhmllhmsjy6kvtc@dcvr \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.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
LKML Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \ email@example.com firstname.lastname@example.org public-inbox-index lkml Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel AGPL code for this site: git clone https://public-inbox.org/ public-inbox