Re: [exim] how exim parses multiple headers into variables

Góra strony
Delete this message
Reply to this message
Autor: Jan Ingvoldstad
Data:  
Dla: Marc Haber
CC: exim users
Temat: Re: [exim] how exim parses multiple headers into variables
On Thu, Apr 30, 2015 at 5:30 PM, Marc Haber <mh+exim-users@???>
wrote:

> On Thu, 30 Apr 2015 16:15:05 +0200, Heiko Schlittermann
> <hs@???> wrote:
> >    Headers add "X-torres-Spam-Score: -4.2\n-4.4\n"

>
> The problem is that a header line beginning with "-" is regarded as
> beginning of the body, at least by mutt.



The problem is that Heiko's suggestion improperly continues the header
without a folding whitespace (see RFC 2822 section 2.2.3), and therefore
"-4.4" is attempted parsed as a header, which fails due to the lack of a
colon, which is not any display issue in mutt, but actually as expected.
You'd get the same problem with a positive score.

Feel free to amend Heiko's suggestion so that it adds a folding whitespace
at the beginning of each continued line. :)

--
Jan