• Packed Messages FTS-0001.16

    From deon@3:633/509 to All on Thursday, December 07, 2023 16:18:46
    Howdy,

    I'm seeing a few bad packets in my inbound (from my mailer), and they are been marked bad, because they end with 2 NULLs and not 3.

    So a question - should the end of mail bundle ultimately have 2 or 3 NULLs?

    FTSC-0001.16 says packed messages have:
    * A header (58 bytes)
    * Zero or more "Packed Messages"
    * Finish with 2 NULLs.

    It also says, packed messages:
    * Start with 0x02 0x00
    * Have some message headers (32 bytes)
    * To, from, subject and a message body, all unbound and NULL terminated.

    So, *should* a packet containing 1 or more packed messages end on 3 NULLs, where the first NULL is the end of the last message, and the remainaing 2 NULLs are the end of the packet?


    ...лоеп
    --- SBBSecho 3.20-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (3:633/509)
  • From Andrew Leary@1:320/219 to deon on Thursday, December 07, 2023 00:47:34

    Hello deon!

    07 Dec 23 16:18, you wrote to all:

    I'm seeing a few bad packets in my inbound (from my mailer), and they
    are been marked bad, because they end with 2 NULLs and not 3.

    So a question - should the end of mail bundle ultimately have 2 or 3 NULLs?

    FTSC-0001.16 says packed messages have:
    * A header (58 bytes)
    * Zero or more "Packed Messages"
    * Finish with 2 NULLs.

    It also says, packed messages:
    * Start with 0x02 0x00
    * Have some message headers (32 bytes)
    * To, from, subject and a message body, all unbound and NULL
    terminated.

    So, *should* a packet containing 1 or more packed messages end on 3
    NULLs, where the first NULL is the end of the last message, and the remainaing 2 NULLs are the end of the packet?

    Yes, that is what should be happening. A .PKT containing no messages (used as a poll packet or in an FTS-0001 handshake, is 60 bytes, 58 for the header and 2 NUL bytes to mark the end of the packet.

    Any .PKT containing packed messages should end with 3 NUL bytes. The first terminates the message text of the final message in the packet, and then 2 NUL bytes for the end of .PKT marker.

    Regards,

    Andrew

    --- GoldED+/LNX 1.1.5-b20230826
    * Origin: From the Desk of the FTSC Administrator (1:320/219)
  • From deon@3:633/509 to Andrew Leary on Thursday, December 07, 2023 17:06:38
    Re: Packed Messages FTS-0001.16
    By: Andrew Leary to deon on Thu Dec 07 2023 12:47 am

    Howdy,

    So, *should* a packet containing 1 or more packed messages end on 3 NULLs, where the first NULL is the end of the last message, and the remainaing 2 NULLs are the end of the packet?

    Any .PKT containing packed messages should end with 3 NUL bytes. The first terminates the message text of the final message in the packet, and then 2 NUL bytes for the end of .PKT marker.

    Great, thanks - I thought so.

    Might be a symptom of another problem (on my behalf), but at least I can now start to investigate.


    ...лоеп
    --- SBBSecho 3.20-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (3:633/509)