From: Gary Funck To: Martin Mokrejs Date: Thu, 9 Sep 1999 21:32:03 -0700 Subject: Re: unpack_mail On Sep 10, 3:40am, Martin Mokrejs wrote: > Subject: unpack_mail > Hello, > I've found your unpacker of mail-archive in procmail-list archive. > http://www.xray.mpe.mpg.de/mailing-lists/procmail/1997-02/msg00175.html > > However, it doesn't extract into prpper size shell script. Do you mean you had trouble extracting unpack_mail from the html page? I've attached a copy to this e-mail message. Save it, chmod +x, and it should work, if you've already installed procmail. > Can you please resend me the program again? see attached. > > Or any procmail recipe how to extract every message from archive in > listname.yymm? I think this will work for you, but you may need to tune the logic to the format of the digest that you have. Note, if you want to save each extracted message into a file, then uncomment these lines in the unpack_mail shell script: # Add this code fragment to create individual message files. # | formail -s csh -c 'cat - > msg.$FILENO' giving the following final command: cat $* | formail -s procmail -m $procrc \ | formail -s csh -c 'cat - > msg.$FILENO'