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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Heiko Schlittermann
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] how exim parses multiple headers into variables
Heiko Schlittermann <hs@???> (So 03 Mai 2015 23:19:16 CEST):
> Marc Haber <mh+exim-users@???> (Sa 02 Mai 2015 21:39:30 CEST):
> > On Fri, 1 May 2015 21:38:31 +0200, Heiko Schlittermann
> > <hs@???> wrote:
> > >Seing this, there is no bug in Exim. Exim does just what you told it to
> > >do. As indicated by the filter test output.
> >
> > I see. It's still clumsy behavior that the output of $h_header_foo
> > cannot be inserted into another header without jumping through hoops.
>
> Which result whould you expect, if you "fold" multiple headers into one?


I think, you only can map n:n

    headers add "${map{<\n $h_x-spam-score:}{X-Torres-Spam-Score: $item}}"


to have the least surprise, until you can answer the above question.

BTW, I think there is a bug, the header concatenation doesn't work
properly, if the header is folded. To keep '\n' as the list separator,
the "folding" \n should be doubled.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -