I have amended one of my filters to do this which you can use with a
Pegasus Mail filter as follows :

It will extract each message, deleting all but these headers : 
subject, to, from, cc, date.

Download the file from :
http://www.dragon-it.co.uk/pegasus.htm

Copy the downloaded file, EXTRACT.EXE to c:\pmail or some other 
directory as you wish then setup a filtering rule as follows :

Tools | Mail Filtering Rules | Create / Edit General Rule Set
Add A rule set, give it a name like "Extract all files in folder" Open
it and Add a rule to the set As an Expression, in message headers only
Trigger Text : From* Action, Run A Program enter filename as
C:\pmail\extract C:\extract.txt

You could change the filtering rules to choose different 
messages, the From* in headers just selects all messages.

the "c:\pmail\extract" should point to the program extract.exe and
C:\extract.txt is the file you want the messages appended to.

Open the folder to apply the rule set to and Tools | Mail Filtering
Rules | Apply General Rule Set | Extract All files in Folder | Open

and it should do it's stuff.  The first time it will open loads of
windows (one for each file) and leave them open.  When it has finished
close all but one then select it and choose properties, Change "Run"
to Minimized and select Close On Exit.

Version 1.01 October 97.
========================

This fixes a bug on some systems due to the LOCKing system used which mean't
it would just hang there for 90 seconds or so before doing anything.

Another suggestion on how to use EXTRACT is to pickup .CNM files or other
email formatted text files and convert them on batch.  Try a batch file like
the following (eg saved as extrall.bat) to extract all the .CNM files in the
current directory into .TXT files in the .\new directory.  Make sure to
specify the path to extract.exe or put it in the current directory so that
the Microsoft program supplied with Windows etc. doesn't get run first.

rem ---- extrall.bat ----
cd \pmail\mail
rem process each message in turn and put resulting file in new sub-directory.
for %%a in (*.cnm) do extract new\*.cnm *.cnm
rem rename all the converted .cnm files into .TXT ones.
rename new\*.cnm *.txt
rem Now do whatever you want with .TXT files (eg Fax them?)
rem ----- end of extrall.bat ----

hth

Steve
pegasus@dragon-it.co.uk
