Ben Rosengart:
> Dear Postfixers,
> I am testing a milter which, under some circumstances, adds a
> header to a message. The problem is that the header is simply not added.
>
> I have instrumented the milter-side code and I can see that the milter
> server is, at EOM time, writing to the socket:
>
> h X-MS-blah\0 some stuff\0
>
> which seems right -- 'h' corresponds to SMFIR_ADDHEADER, according to
> the list of protocol constants in Sendmail::PMilter::Context. The first
> argument is the header name and the second is the value.
Are you implementing your own Milter on-the-wire read/write
routines?
If so, I suggest taking an existing implementation (for example the
Postfix src/milter/test-milter.c program) to add a header and see
what the bits on the wire look like.
Wietse