Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4650412imb; Wed, 6 Mar 2019 19:45:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwOqqV7eWy4Fsy3zub/0qQk00DJTQh3+cV5MJfQ5YpeIq2/NuC24wCf2JcvCyWKp2AdVujB X-Received: by 2002:aa7:885a:: with SMTP id k26mr10729845pfo.70.1551930354219; Wed, 06 Mar 2019 19:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551930354; cv=none; d=google.com; s=arc-20160816; b=yTyCHEEuz3NC9xWTGJGEKMxi8UdmNLZuUOB3OewxaX7V0mzSRm56P160a7lR6UFckB Pk6d1yl1ZuWzPh2lK9O1Tr8lzUQqoErRO4IYGe09aRIJfL5P6S27ihvFYQdlpXu8e5A7 fyn4MG1KxBpM/biR2QHbG1xSrI+OShtKdPU65Zj+eQGv/mE6/iJ6tMPAtubeHDSnby/k EVGRKU+Nme9d/ZXiawpau/cfSrhYsqNAkBto/Q+rZORh5/tUKGSSwU7PTG7g/YhxmAOv CjttNYHDHSBUjgc6h0QcIIfD5HvNUlBo/iKEKMzhnyR2CyBM6inqVFz0o9KTscMLNZwn uOxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=d480gO5jD3sibwAVkWaHQeMr8dK348vLm6Bq42lK+mI=; b=qRrziP6C+xXsjwowOd8dDKOw/SV62pWIcyVqPDMU39J3655vjgt5J+XzrMHS11f+ZO 8Mn4WeUYtRXUKTCxnLA6iP39Xef1viKoQtZ5m4QKM5eQLqrDpV8k+H3mS9k4eEwIIPUw tRbkR2FhpXE8ZcW/lFvsRRhkQgrj/K3eCKvCXuUTFhb9X0OzhOxiaAUZ+HKyiii4pKAQ 588VELAec5riLpS0ysZcW6mqY1WXH/7wURsBIklFaMWV602sm3Q9G8uw42JlBCUL3M51 7GZjF7VX19DmT9H9JDBW+vo19TuMfNbGsiYKFgIwSx8/X6PijNc6T/kvtozaoJVkIlIQ IvKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si3055860pll.18.2019.03.06.19.45.38; Wed, 06 Mar 2019 19:45:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726264AbfCGDoz (ORCPT + 99 others); Wed, 6 Mar 2019 22:44:55 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:52874 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfCGDoy (ORCPT ); Wed, 6 Mar 2019 22:44:54 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C9F2A20248; Thu, 7 Mar 2019 03:44:53 +0000 (UTC) Date: Thu, 7 Mar 2019 03:44:53 +0000 From: Eric Wong To: Bjorn Helgaas Cc: Joey Pabalinas , linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org, Linus Torvalds , Greg Kroah-Hartman , Konstantin Ryabitsev , Eric Biederman , Jasper Spaans Subject: Re: [RFC] LKML Archive in Maildir Format Message-ID: <20190307034453.pbhmllhmsjy6kvtc@dcvr> References: <20181216190639.6safwjqwdphkce67@gmail.com> <20181216194649.GA7732@pure.paranoia.local> <20181216195343.idnt2y5y5wjky5gu@gmail.com> <20190104013522.stng6gwauwnr6wbi@starla> <20190305232600.GA12110@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bjorn Helgaas wrote: > On Tue, Mar 5, 2019 at 5:26 PM Eric Wong wrote: > > Bjorn Helgaas 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.