• Adding a TZUTC Kludge?

    From Warpslide@21:3/110 to Spectre on Sun Mar 7 18:01:36 2021
    Hi Spectre,

    There's a rumour going around over on FIDOTEST that you may have a way of adding a TZUTC kludge on older BBS/Mailers?

    I realize it's not 100% required, but if I could add it through FastEcho somehow that'd be pretty cool.

    Jay

    ... When it's three O'clock in New York, it's still 1938 in London.

    --- Telegard v3.09.g2-sp4/mL
    * Origin: Northern Realms | 289-424-5180 | bbs.nrbbs.net (21:3/110)
  • From Spectre@21:3/101 to Warpslide on Mon Mar 8 18:59:00 2021
    There's a rumour going around over on FIDOTEST that you may have a
    way of adding a TZUTC kludge on older BBS/Mailers?

    Well yes and no.... I make the addition after the message is edited and before its read back into the BBS. Probably only going to work for software that uses MSGTMP or something very similar.

    I keep a short file with the UTC kludge in it, and simply use redirections to rebuild the MSGTMP before re-entry to the BBS.

    Soo...

    mv msgtmp msgtmp.new
    type kludge.txt > MSGTMP
    type msgtmp.new >> MSGTMP
    exit

    you have to be able to call the message editor from a batchfile rather than have it called directly as a .exe without command.com. What I use should work with any QuickBBS clone, so QBBS, old RA, SuperBBS, Celerity, and others.

    Spec


    --- SuperBBS v1.17-3 (Eval)
    * Origin: (21:3/101)
  • From Warpslide@21:3/110 to Spectre on Mon Mar 8 09:10:03 2021
    *** Quoting Spectre from a message to Warpslide ***

    Well yes and no.... I make the addition after the message is edited
    and before its read back into the BBS. Probably only going to work
    for software that uses MSGTMP or something very similar.
    mv msgtmp msgtmp.new type kludge.txt > MSGTMP type msgtmp.new >>
    MSGTMP exit

    mv msgtmp msgtmp.new type kludge.txt > MSGTMP type msgtmp.new >>
    MSGTMP exit

    Oooo, very clever!

    Yup, I believe IceEdit uses MSGTMP and I do call it from a batch file. I'll play around with this.

    Thanks so much!

    Jay

    ... Insults are effective only where emotion is present.

    --- Telegard v3.09.g2-sp4/mL
    * Origin: Northern Realms | 289-424-5180 | bbs.nrbbs.net (21:3/110)
  • From Warpslide@21:3/110 to Spectre on Mon Mar 8 10:33:43 2021
    *** Quoting Spectre from a message to Warpslide ***

    @TZUTC: 1000
    @NOTE: IceEdit 2.35 a00000

    mv msgtmp msgtmp.new
    type kludge.txt > MSGTMP
    type msgtmp.new >> MSGTMP
    exit

    I saw after the fact that you're using IceEdit as well, so I knew this should work, and it seems to. If all has gone according to plan, this message *should* have a TZUTC & CHRS kludge.

    @ECHO OFF
    C:
    CD \TELEGARD\DOORS\IEDIT
    ICEEDIT.EXE /D:C:\TELEGARD\TEMP%1
    REN C:\TELEGARD\TEMP%1\MSGTMP MSGTMP.NEW
    TYPE C:\TELEGARD\KLUDGE.TXT > C:\TELEGARD\TEMP%1\MSGTMP
    TYPE C:\TELEGARD\TEMP%1\MSGTMP.NEW >> C:\TELEGARD\TEMP%1\MSGTMP
    DEL C:\TELEGARD\TEMP%1\MSGTMP.NEW

    Now I just have to finangle a way of updating that KLUDGE.TXT file twice a year for daylight saving time. Looks like the time is changing on the 14th for us from -5 to -4.

    Thanks so much, that's very clever and helpful. I never would have thought
    of adding it that way.

    Jay

    ... There are no answers, only cross-references!

    --- Telegard v3.09.g2-sp4/mL
    * Origin: Northern Realms | 289-424-5180 | bbs.nrbbs.net (21:3/110)
  • From Spectre@21:3/101 to Warpslide on Tue Mar 9 05:25:00 2021
    TYPE C:\TELEGARD\TEMP%1\MSGTMP.NEW >> C:\TELEGARD\TEMP%1\MSGTMP DEL C:\TELEGARD\TEMP%1\MSGTMP.NEW


    Strictly speaking you don't need the del, type or echo > filename will remove the old contents. I did have it, I eventually removed it for some reason I don't remember right now.

    Now I just have to finangle a way of updating that KLUDGE.TXT file

    Kludge always gave me a bit of grief. I had to edit it for starters in thedraw, it was the only thing that would add the ctl-a for me, s'pose I could've hexedited it. In the end I just run at standard time and ignore DST for the BBS.

    Thanks so much, that's very clever and helpful. I never would have thought of adding it that way.

    Not sure how else you'd do it, unless you want to start editing your message base. Its the only point there is access to the message contents. Can't argue with success eh :)

    Spec


    --- SuperBBS v1.17-3 (Eval)
    * Origin: (21:3/101)
  • From Warpslide@21:3/110 to Spectre on Mon Mar 8 16:01:04 2021
    *** Quoting Spectre from a message to Warpslide ***

    Strictly speaking you don't need the del, type or echo > filename
    will remove the old contents. I did have it, I eventually removed it
    for some reason I don't remember right now.

    I had to delete the MSGTMP.NEW file at the end. If I didn't, any new messages would always have the contents of my old message. (Until I logged off, then the BBS would wipe the file out).

    It would appear that the REN command on Windows isn't destructive.

    Kludge always gave me a bit of grief. I had to edit it for starters
    in thedraw, it was the only thing that would add the ctl-a for me,
    s'pose I could've hexedited it.

    I just did ALT 001 (using the numpad) and it typed it ok. In Notepad++ it came up as a SOH character.

    Not sure how else you'd do it, unless you want to start editing your message base. Its the only point there is access to the message
    contents.

    I was looking at FastEcho to see if there was some utility that would scan
    the packets on their way out, it didn't occur to me to add them at the time
    of creation.

    Can't argue with success eh :)

    Exactly, now those sticklers in FIDOTEST can get off my case! ;)


    Jay

    ... Logic and practical information do not seem to apply here.

    --- Telegard v3.09.g2-sp4/mL
    * Origin: Northern Realms | 289-424-5180 | bbs.nrbbs.net (21:3/110)
  • From Warpslide@21:3/110 to Spectre on Mon Mar 8 16:22:55 2021
    *** Quoting Spectre from a message to Warpslide ***

    @NOTE: IceEdit 2.35 a00000

    P.S:

    I found IEKEY235.ZIP & IEDIT235.ZIP on: http://bbs.valhallabbs.com/webv4/?page=002-files.xjs&dir=util

    This lets you use a registered version of IceEdit where you can compile taglines, just in case you like taglines.


    Jay

    ... Power corrupts. Absolute power is kinda neat, though.

    --- Telegard v3.09.g2-sp4/mL
    * Origin: Northern Realms | 289-424-5180 | bbs.nrbbs.net (21:3/110)