On Wed, 15 Dec 2004 16:19:37 -0600, [EMAIL PROTECTED] wrote:
> I guess I could write some software to read each message in a 
> given inbox, creat a new .rcp file for each message based on the 
> messages' headers (or the name of the inbox), then move the 
> paired files back to the IMS incomming folder.

Digging into my trusty archive - dec 2002

----- Original Message ----- 
>From: "Klint Gore" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, December 03, 2002 9:16 PM
Subject: Re: I need help: Emwak to Unix


Try this.  save as a .cmd file.  It may need w2k to run properly but
it's just plain shell commands so it should be ok as long as you can map
the drive where the files are.  It might trigger some anti relay stuff.

-- relocate --
echo run from the users directory where .msg files are
echo parameter 1 = username
echo parameter 2 = destination email
echo parameter 3 = ims incoming/prein directory
echo parameter 4 = ims domain
echo press ctrl-c to stop now
pause

for %%a in (*.msg) do call :movemessage %%a %1 %2 %3 %4
goto :end

:movemessage
rem create rcp file as tmp
echo Message-ID: ^<[EMAIL PROTECTED]> >%~n1.tmp
echo Return-Path: [EMAIL PROTECTED] >>%~n1.tmp
echo Recipient: %3 >>%~n1.tmp

rem replace following line with copy %1 %4 while testing
move %1 %4
move %~n1.tmp %4\%~n1.rcp

:end
------------------------




+---------------------------------------+-----------------+
: Klint Gore                            : "Non rhyming    :
: EMail   : [EMAIL PROTECTED]           :  slang - the    :
: Snail   : A.B.R.I.                    :  possibilities  :
: Mail      University of New England   :  are useless"   :
:           Armidale NSW 2351 Australia :     L.J.J.      :
: Fax     : +61 2 6772 5376             :                 :
+---------------------------------------+-----------------+
This is the discussion list for the IMS Free email server software.
  To unsubscribe send mailto:[EMAIL PROTECTED]

            Delivered by Rockliffe MailSite
           http://www.rockliffe.com/mailsite
                Rock Solid Software (tm)

Reply via email to