There is a program that comes with the yes editor utilities called ypost.
It will convert an ordinary mail message, including header, into a
soup message and add it to yarn's Reply soup packet. Please read about
it in the YES documentation. To use it for the above, you must eliminate
the first few lines in the ``glue'' headers such as:
T address@smething.com
C address2@othersomething.com
Here is a simple batch file that uses the freeware editor sed to
throw out the first few pegasus type lines of glue headers:
-------------------BEGIN CONVERT.BAT------------------------
chdir C:\PEGASUS\SPOOL
if not "%1"=="" goto doit
for %%f in (*.*) do call CONVERT.BAT %%S
goto end
:doit
sed -e "/^$/q" -e d $1 > C:\tmp\tempfile
ypost.exe -M C:\tmp\tempfile
:end
del C:\tmp\tempfile > nul
----------------------END CONVERT.BAT-----------------------------
The previous batch file works thus: For each file in the directory,
SPOOL, the sed program deletes all lines in the file upto the first
blank line and puts the results in the file, tempfile. Then ypost
converts tempfile into a file with a soup header and adds this
file to the (usually) replies.zip file defined inthe yarn and yes
config files.
r
blank line