home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
pmmrxtoo.zip
/
strip_xmailer.cmd
< prev
Wrap
OS/2 REXX Batch file
|
1997-11-05
|
627b
|
18 lines
/* strips the line "X-Mailer:" if used as an outgoing filter for PM-Mail
ObjectRexx (REXXSAA6.0), due to usage of "PARSE CASELESS"
1997, ---rgf, wu-wien */
PARSE ARG file /* get filename */
tmpString = CHARIN( file, 1, CHARS( file ) ) /* read file */
crlf = "0d0a"x /* CR-LF */
PARSE CASELESS VAR tmpString before "X-Mailer:" . ( crlf ) after
CALL STREAM file, "C", "OPEN REPLACE" /* replace file */
CALL CHAROUT file, ( before || after )
CALL STREAM file, "C", "CLOSE"
RETURN
PP: procedure
return "[" || arg( 1 ) || "]"