unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org
Subject: Re: [PATCH 3/3] lib: Reject multi-message mboxes and deprecate single-message mbox
Date: Sun, 25 Nov 2012 15:26:58 +0200	[thread overview]
Message-ID: <m2y5hpu82l.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <1353824161-31717-3-git-send-email-amdragon@mit.edu>

On Sun, Nov 25 2012, Austin Clements <amdragon@MIT.EDU> wrote:

> Previously, we would treat multi-message mboxes as one giant email,
> which, besides the obvious incorrect indexing, often led to
> out-of-memory errors for archival mboxes.  Now we explicitly reject
> multi-message mboxes.  For historical reasons, we retain support for
> single-message mboxes, but official deprecate this behavior.


The series looks good to me -- but I don't know about deprecating
single-message mboxes:

* If we someday support (read-only?) mbox format, then single-message
  mboxes are "normal" again.

* Some naïve mb2md scripts could leave the 'From ' -line intact: for
  example `formail -bz -s head -3 < $MAIL`(*) can be used to demonstrate this

* Some people may have large collection of single-file messages starting
  with 'From ' currently indexed. If those are to be re-indexed later
  without "single-message mbox" support that is somewhat of a burden to
  the users (**)

(*) my "mb2md" wannabe does gnus-like "$formail" -bz -R 'From ' X-From-Line: ...

(**) Something like the following could be used to mangle "single-file mboxes"...
     find . -type f | xargs perl -e 'foreach (@ARGV) { open IO, "+<", $_ or
     next; sysread IO, $buf, 5; if ($buf eq "From ") { sysseek IO, 0, 0;
     syswrite IO, "Fro:"; }}' 
     This breaks the multi-message mbox nicely... >;)


Tomi

  reply	other threads:[~2012-11-25 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-25  6:15 [PATCH 1/3] test: Test notmuch new for single-message mbox Austin Clements
2012-11-25  6:16 ` [PATCH 2/3] test: Test for ignoring multi-message mbox Austin Clements
2012-11-25  6:16 ` [PATCH 3/3] lib: Reject multi-message mboxes and deprecate single-message mbox Austin Clements
2012-11-25 13:26   ` Tomi Ollila [this message]
2012-11-25 18:05     ` Austin Clements
2012-11-25 19:57       ` Tomi Ollila
2012-11-25 11:33 ` [PATCH 1/3] test: Test notmuch new for " Mark Walters
2012-11-27  1:14 ` David Bremner

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=m2y5hpu82l.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=amdragon@MIT.EDU \
    --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).