de> I'm seeing a few bad packets in my inbound (from my mailer), and they de> are been marked bad, because they end with 2 NULLs and not 3.
de> So a question - should the end of mail bundle ultimately have 2 or 3 de> NULLs?
de> FTSC-0001.16 says packed messages have: de> * A header (58 bytes) de> * Zero or more "Packed Messages" de> * Finish with 2 NULLs.
de> It also says, packed messages: de> * Start with 0x02 0x00 de> * Have some message headers (32 bytes) de> * To, from, subject and a message body, all unbound and NULL de> terminated.
de> So, *should* a packet containing 1 or more packed messages end on 3 de> NULLs, where the first NULL is the end of the last message, and the de> 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)