On Wed, 22 Aug 2001 13:06:30 -0400, "David M. Rosner" <[EMAIL PROTECTED]> said:
David> Yes, the recipients in my example below are defined in the
David> message header AND in the QMQP recipient field.
Sorry, missed the bare-recipients.
David> In the example the first 74 bytes contains the message with the
David> header, the following 16 bytes is the sender, and the remaining
David> 21 and 16 bytes are the 2 recipients:
143:74:XFrom: [EMAIL PROTECTED]: [EMAIL PROTECTED] (dave)XXThis is a test.,
16:[EMAIL PROTECTED],21:[EMAIL PROTECTED],16:[EMAIL PROTECTED],,
David> You stated in your email that the recipients should appear at
David> the end of the package netstring encode. Do you mean that my
David> recipients (above) should look like the following as the spec
David> is written:
David> 45:21:[EMAIL PROTECTED],16:[EMAIL PROTECTED],,
Yeah, that's what DJB's example indicates:
"246:" <0a>
"Received: (qmail-queue invoked by uid 0);"
" 29 Jul 1996 09:36:40 -0000" <0a>
"Date: 29 Jul 1996 11:35:35 -0000" <0a>
"Message-ID: <[EMAIL PROTECTED]>" <0a>
"From: [EMAIL PROTECTED]" <0a>
"To: [EMAIL PROTECTED] (D. J. Bernstein)" <0a>
<0a>
"This is a test." <0a> ","
"24:" "[EMAIL PROTECTED]" ","
"30:" "26:[EMAIL PROTECTED]," ","
So yours should look like:
73:XFrom: [EMAIL PROTECTED]: [EMAIL PROTECTED] (dave)XXThis is a test.,
16:[EMAIL PROTECTED],
45:21:[EMAIL PROTECTED],16:[EMAIL PROTECTED],,
The first length should only count the length of the body. The body
is encoded, the from encoded, then a list of encoded recipients is
encoded. These three pieces are simply concatenated. So his processor
is just looking for three strings. It dissects the recipient string
into its components.