said:
>My first attempt involved deleting the original and copying the modified
>email to back to the same name. This didn't work, I guess PMMail detects
>the file deletion and even though the filename isn't changed, it fails.
How does PMMail invoke your REXX script? MR/2 invokes the presend script
synchronously, so an delete/rewrite is no problem. PMMail might be doing
some sort of polling, waiting for your script to finish.
>writes the file out from a stem to a tmpfile line by line and when it
>reaches the end of the data, I have it continue writing blanks (x20)
>until it reaches the same number of lines as the original file.
While it sounds silly, it's a good solution in some cases. I do the same
thing in some scripts to do subject rewriting. However, I rewrite only
the subject line retaining the original length. This is a lot faster than
rewriting the entire message body.
>Unfortunately, for whatever reason once it reaches the end of the new
>data and starts writing blanks, at that point it starts 'pushing' the
>remaining old data 'down', as if a text editor switched from overwrite to
>insert.
I'd have to see your code, but this really smells like a logic error of
some sort.
>So I'm stuck. If there is a way to do this, I'm all ears.
You might be able to use:
'copy nul' fileName
This will empty the file and I may not delete it first.
>I wrote this off-list, I hope that's ok.
I can't see any reason to not keep this on the list. This way others can
learn too.
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.60b #10183 Warp4/FP15/14.093c_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 04 |
November |
2004 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.