From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yA/kFj+El15PNwAA0tVLHw (envelope-from ) for ; Wed, 15 Apr 2020 22:01:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4J0YLUKEl15eXQAA1q6Kng (envelope-from ) for ; Wed, 15 Apr 2020 22:01:38 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 75AC7941D6E for ; Wed, 15 Apr 2020 22:01:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 4D18B6DE0AAA; Wed, 15 Apr 2020 15:01:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j1FxBHZDpHms; Wed, 15 Apr 2020 15:01:31 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 6F0336DE092F; Wed, 15 Apr 2020 15:01:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5CF1B6DE092F for ; Wed, 15 Apr 2020 15:01:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1DPnNqMd_H9C for ; Wed, 15 Apr 2020 15:01:25 -0700 (PDT) Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by arlo.cworth.org (Postfix) with ESMTPS id F1D1E6DE0361 for ; Wed, 15 Apr 2020 15:01:24 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id BB040D45A4; Wed, 15 Apr 2020 18:01:23 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=HtoSjGoPz/zTswt8rDBLi1jt9hk=; b=GjqkP0 VEO1AEaeBzE/LYlIeZefDyZQaa4HQLGcmfPOrmB6xb4Mcgg/FaOKZ977OpzQPuSd 2oTE87RU2xYf19AL3iRyw8bDIHnB01dWL/qTof9sMTBG8/9zPY8JUYTQSVtixqKW g7P3OiXpBgNo89Wc/PXa2s8ica8TPT+xHRC7o= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id AC987D45A3; Wed, 15 Apr 2020 18:01:23 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=v/9NbibXQhRIkyjN9WQCwg3U7FReC511kE0t8SMgl2w=; b=W2mZttxL+hyKiVTyQ26IFssCSkdmLfJ+5c1i4gjJMCLFCtRJSanrNknuoXfckrnNcALVCF9npSFJfEGtomiVQtbaa1F/+inihqaCPoYXXBZZjOVyOKSYu88MHUdssOh7Y1ccQ+vUVb+XdP3rucVBqJt91i0B81qb8qExJObQsIo= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id F1AB6D45A1; Wed, 15 Apr 2020 18:01:20 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Jonas Bernoulli Subject: Re: easy (?) elisp project for notmuch [it's mostly DONE] In-Reply-To: <878siwsi8n.fsf@bernoul.li> References: <875ze211gi.fsf@bernoul.li> <87k12i7zwv.fsf@kyleam.com> <878siwsi8n.fsf@bernoul.li> Date: Wed, 15 Apr 2020 22:01:19 +0000 Message-ID: <878siw8l3k.fsf@kyleam.com> MIME-Version: 1.0 X-Pobox-Relay-ID: A3D169A6-7F64-11EA-8323-8D86F504CC47-24757444!pb-smtp21.pobox.com X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: notmuch@notmuchmail.org, Sean Whitton Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 X-Spam-Score: -0.01 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=pobox.com header.s=sasl header.b=GjqkP0 V; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=W2mZttxL; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Scan-Result: default: False [-0.01 / 13.00]; RCVD_COUNT_SEVEN(0.00)[10]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.45208038320708]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:c]; IP_REPUTATION_HAM(0.00)[asn: 27017(-0.18), country: US(-0.01), ip: 50.126.95.6(-0.45)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[notmuch@notmuchmail.org]; ARC_NA(0.00)[]; HAS_LIST_UNSUB(-0.01)[]; R_DKIM_REJECT(1.00)[pobox.com:s=sasl,kyleam.com:s=mesmtp]; TO_DN_SOME(0.00)[]; MX_GOOD(-0.50)[cached: notmuchmail.org]; DKIM_TRACE(0.00)[pobox.com:-,kyleam.com:-]; DMARC_NA(0.00)[kyleam.com]; MAILLIST(-0.20)[mailman]; FORGED_SENDER_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:27017, ipnet:50.126.64.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[kyle@kyleam.com,notmuch-bounces@notmuchmail.org]; SUBJECT_HAS_QUESTION(0.00)[] X-TUID: BpNEyllnra/+ Jonas Bernoulli writes: > Nice to run into you. You too :) > Do you contribute to *all* the killer apps? ;D Heh. I think notmuch is great, but I haven't made any real contributions. Just a happy user and a lurker on the mailing list. > Kyle Meyer writes: >> From there, you can easily download an mbox for a message or thread >> from before you subscribed (e.g. to feed to 'notmuch insert'). > > Do you already have some tooling that you could share? Only very minimal. I have a script that takes a public-inbox thread mbox link, such as https://public-inbox.org/meta/20200406095621.5656-1-e@yhbt.net/t.mbox.gz It uses mbox2maildir from Sean's mailscripts to convert the mbox to a maildir and then calls 'notmuch insert' with each message. There might be a better approach, but it's been working fine for me. My main use case is that I follow some lists hosted on public-inbox.org and lore.kernel.org via nntp; if I want to reply to something, I import a thread into notmuch. Note that it hard codes my folder. --8<---------------cut here---------------start------------->8--- #!/bin/sh if test $# -ne 1 then echo "$0 " exit 1 fi cd "$(mktemp -d ${TMPDIR:-/tmp}/notmuch-import-XXXXXXX)" curl -fsS $1 | gunzip -c >t.mbox mbox2maildir t.mbox mdir for f in $(find mdir -type f) do notmuch insert --no-hooks --folder=kyleam/INBOX <$f done --8<---------------cut here---------------end--------------->8--- As a side note about tooling: David mentioned Sean's mailscripts in the context of debbugs. I haven't used that specific functionality yet, but it has other scripts that are really nice for working with patch series. mailscripts even gained some functionality for extracting a patch series from an mbox that was inspired [^1] by Konstantin Ryabitsev's get-lore-mbox.py [^2] tool for grabbing patch series from threads on lore.kernel.org, which uses public-inbox. All very exciting :) [^1]: https://lore.kernel.org/workflows/87lfp38p7s.fsf@iris.silentflame.com/ [^2]: I think this tool was renamed recently, but I can't find that information at the moment. > Kyle, have you considered mirroring emacs-devel and the Emacs debbugs > as well? I have... I dunno :/ The two higher-volume projects that I'm considering creating public-inbox archives for are Emacs (devel and debbugs) and Guix (patches, bugs, devel, user, ... they sure do like to split up discussion ...). It takes some work up front to create the initial archives, but my main hesitation is due to uncertainty about how my current VPS set up would fare. So, I'm letting things settle a bit.