on Sun, Nov 23, 2003 at 12:52:22PM +0900, Vincent Lefevre (vincent@vinc17.org) wrote:
> On 2003-11-16 14:16:40 +0000, ben wrote:
> > pigeon posted this script just yesterday.
> >
> > -------------------------------------------------
> > #!/bin/bash
> > IFS=$'\n'
> > i=0
> > BASENAME="split.mbox"
> > while read x; do
> > echo "$x" | grep '^From ' && i=$(( i + 1 ))
> > echo "$x" >> $BASENAME.$i
> > done
> >
> > -------------------------------------------------
>
> This won't work if you have a message containing a line starting
> with "From ". No problem with Mutt.
Show me an mbox file with a message line starting with "From".
After you've looked for a while, do some research on Google, and then
tell us one of the really annoying quirks of the mbox format.
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
They were both poisoned. I spent the last few years building up an
immunity to iocane powder.
- Princess Bride
Attachment:
pgpl4KoblHbxN.pgp
Description: PGP signature