Hello.

Postfix's header_checks features logging certain headers for incoming
and outgoing messages. For example, I could set a header_checks file
like this:

/^subject:/ INFO

And then I could read each message subject in the log, which is useful.

Sadly, if the subject header spans across multiple lines in the MIME
source, this introduces an spurious "? " in place of each line break.
Suppose I send a message with the following header: "This is a very long
long header, which spans through several lines in the MIME source and
will serve to demonstrate that Postfix header_checks is a little buggy,
introducing spurious question marks."

In my mail client, that subject will be split among three lines, the
first starting with "Subject: " and the other two starting with an space
to indicate they are continuation of the previous header. This is
standard behavior allowed by RFC 2822, specified in section 2.2.3.

Postfix does not seem to be decoding headers well when it logs them,
therefore I get this in the log:

124522602BB: info: header Subject: This is a very long long header,
which spans through several lines? in the MIME source and will serve to
demonstrate that Postfix header_checks? is a little buggy, introducing
spurious questi

Regards,
Juan Luis.

Reply via email to