unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "W. Trevor King" <wking@tremily.us>
To: notmuch@notmuchmail.org
Cc: Eric Wong <e@80x24.org>
Subject: Re: Mail archives in Git using ssoma
Date: Sat, 20 Aug 2016 21:36:31 -0700	[thread overview]
Message-ID: <20160821043631.GA2338@odin.tremily.us> (raw)
In-Reply-To: <20141107190321.GL23609@odin.tremily.us>

[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

On Fri, Nov 07, 2014 at 11:03:21AM -0800, W. Trevor King wrote:
> Eric Wong has been working on some tools to store email in a Git
> repository, and his client-side code is ssoma [1].  I wanted a bit
> more metadata than the stock ssoma-mda [2], and ended up just
> writing a ssoma-mda in Python [3]…
>
> Then I grabbed the archives, and pulled them into Git:
> …
> The messages I dropped removed duplicate Message-IDs:
> …

ssoma and public-inbox came up recently (with the end of Gmane) in
[1].  I've brought my archives [2] up to speed with a fresh mbox
downloaded today [3].  Beyond the ignored messages mentioned in my
initial email, I had to ignore:

* id:67EEA3E1-918F-47AE-8AD7-EF0A5923D800@m0g.net

  Which had different headers up through:

  -X-List-Received-Date: Wed, 06 Jan 2016 15:49:49 -0000
  +X-List-Received-Date: Wed, 06 Jan 2016 15:50:34 -0000

  but the same body in both instances.

I also had to remove two control characters:

  $ tr -d '\034' <notmuch.mbox >notmuch-fixed.mbox

to get the mbox into a format that Python could parse without errors.

I've pushed the mbox → ssoma(ish) import script to the ‘import’ branch
of [2] if folks want to play around.

Cheers,
Trevor

[1]: id:20160820062931.GY30347@odin.tremily.us
[2]: git://tremily.us/notmuch-archives.git
[3]: http://notmuchmail.org/archives/notmuch.mbox

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-08-21  4:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 19:03 Mail archives in Git using ssoma W. Trevor King
2016-08-21  4:36 ` W. Trevor King [this message]
2016-08-21  9:48   ` Mail archives in Git using ssoma (Docker image) W. Trevor King
     [not found]     ` <20160821120852.GA12964@dcvr>
2016-08-21 13:49       ` David Bremner
2016-09-07  1:23         ` Eric Wong
2016-08-21 17:36       ` W. Trevor King
2016-08-21 18:28         ` Eric Wong
2016-08-21 18:37   ` Mail archives in Git using ssoma Eric Wong
2016-08-21 20:28     ` W. Trevor King
2016-08-21 21:14       ` Eric Wong

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=20160821043631.GA2338@odin.tremily.us \
    --to=wking@tremily.us \
    --cc=e@80x24.org \
    --cc=notmuch@notmuchmail.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
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).