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.

-- 
Vincent Lef�vre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Math�matiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to