Sebastian Nielsen:
> How can I completely replace the headers in a milter? The replaced
> header data contains both added and changed headers.

As of the last Milter bugfixes late 2014, you can delete or replace
all headers except the Received: header that the MTA adds.

The Milter protocol supports adding and replacing headers, and I
expect that the Milter API supports the same operations.

However, if you want to replace MIME headers then you need to be
aware that the Milter protocol does not understand MIME.  It sends
all content after the first non-header line as body content.

Header:
        Receiver: blah
        From:
        Subject:
        Mime-version:
        Content-type:
        Content-Transfer-Encoding:

Body:
        --boundary
        [Mime headers for first body part]

        First body part

        --boundary
        [Mime headers for second body part]

And so on.

        Wietse

Reply via email to