| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: AmyBW |
-=> On 05 Sep 96 20:51:28 you wrote to me <=-
Hi Rob,
MS> I have written an ARexx script which will "patch" AmyBW to
MS> ignore the packet version number. I'm using a patched 2.11 now,
MS> and I've also tested it on version 2.10.
RH> Yes please, I have V2.13 registered and have not used it since
RH> the packet version probs :(
/*
* P A T C H A M Y B W
*
* Patch AmyBW so that it ignores the mail packet version number
* The original version is named AmyBW:AmyBW.old
*
* Tested on AmyBW version 2.10 and 2.11
*
* Written by M. Stapleton of Graphic Bits
* This file is hereby donated to the public domain
*
* Jul 1 1996
*
*/
fname = 'AmyBW:AmyBW'
iname = fname'.old'
shell 'COMMAND' 'copy' fname 'to' iname
exit ChangeStr(fname, '55006726'x, '42006726'x)
/* Replace first occurence of old string with new in file iname */
ChangeStr:
parse arg iname,old,new
len = length(old)
if len ~= length(new) then do
say 'Error: strings are of unequal length.'
return 10
end
if ~open('f', iname, 'A') then do
say 'Error: Can''t open file "'iname'".'
return 10
end
call seek('f', 0, 'B')
bufsize = 65535 /* Maximum ARexx string length */
buf = readch('f', bufsize)
bufsize = bufsize - len
/* Search */
do until eof('f')
p = index(buf, old)
if p>0 then break
/* Leave the last len bytes in buf, in case */
/* the pattern crosses the buffer boundary */
buf = right(buf, len) || readch('f', bufsize)
end
if p=0 then do
say 'Pattern not found!'
return 5
end
/* Replace */
call seek('f', p-1-length(buf), 'C')
call writech('f', new)
return 0
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
Let me know how it goes with 2.13.
Michael Stapleton of Graphic Bits.
* AmyBW v2.10 *
... This tagline is encrypted
--- AdeptXBBS v1.07f (Registered)
* Origin: Mach One BBS (3:713/615)SEEN-BY: 620/243 621/525 623/630 625/100 711/401 409 413 430 808 809 934 SEEN-BY: 712/515 713/111 317 615 618 700 888 914 714/906 800/1 @PATH: 713/888 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.