• Corrupted Message

    From Warpslide@21:3/110 to All on Thu Mar 19 10:50:38 2026
    Hi All,

    One of my links sent in a packet with a corrupted message, which HPT tossed and promptly sent back out.

    The packet itself seemed fine date & address wise, but the message was not:

    Message header ------------------------------------------------------------------------------ "rom : " 16/2047
    To : " Updates previous tstm wnd dmg rep"
    Subject : ""
    DateTime : "00 00 00:00:00"
    Attr : 0x0000
    OrigAddr : 400/38
    DestAddr : 400/1

    I've put a couple of rules in place with HPT's filter capabilities:

    If $fromname is empty or begins with whitespace then mark the message as bad
    If $toname is empty or begins with whitespace then mark the message as bad
    If $subject is empty or begins with whitespace then mark the message as bad

    The date in the message was also all zeros, which GoldEd reads as Jan 01 1980.

    I've also added some checks in there for either an invalid date or +/- 90 days then mark the message as bad.

    I'd like to hear others comments on these checks, do they seem sane? Mystic or Telegard don't seem to let you send a message with an empty subject, but
    GoldEd will allow you to.


    Jay

    ... Predestination was doomed from the start

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Northern Realms (21:3/110)
  • From deon@21:2/116 to Warpslide on Fri Mar 20 07:27:09 2026
    Re: Corrupted Message
    By: Warpslide to All on Thu Mar 19 2026 10:50 am

    Howdy,

    I've put a couple of rules in place with HPT's filter capabilities:

    If $fromname is empty or begins with whitespace then mark the message as bad If $toname is empty or begins with whitespace then mark the message as bad If $subject is empty or begins with whitespace then mark the message as bad

    I'd like to hear others comments on these checks, do they seem sane? Mystic

    Clrghouz does the same regarding the "is empty" part - it goes one step further if the body of the message is empty, it discards the message.

    I dont do anything to those fields if they have a value, and it starts with a whitespace though. Maybe I should?

    I've also added some checks in there for either an invalid date or +/- 90 days then mark the message as bad.

    I also validate the date, and if it is future dated (by more than 2 days), or older than 90 (I think), or doesnt resemble a date its discarded.


    ...лоеп
    --- SBBSecho 3.29-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)