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)