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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Marc Haber
Datum:  
To: exim-users
Betreff: Re: [exim] how exim parses multiple headers into variables
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.

>Using 'headers add "x-torres-spam-score: $h_x-spam-score"' IS wrong.


yes. that violates the principle of least surprise.

>For that reason I proposed the solution using reduce{}, that does
>basically the same as the sg{} solution from Marc. Both may be
>considered ugly, but the reduce{} at least treats the $h_x-spam-score
>as what it is - a '\n' delimted LIST of header values.


Yes, that sounds elegant indeed.

Greetings
Marc
-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834