Re: [Exim] headers_rewrite and system-filter-generated heade…

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: W M Brelsford
CC: Exim Users
Assumpte: Re: [Exim] headers_rewrite and system-filter-generated headers
On Tue, 10 Jun 2003, W M Brelsford wrote:

> According to spec.txt, headers_rewrite is used at transport time to
> rewrite headers. And it says:
>
>    "However, only the message's original header lines, and any
>    that were added by a system filter, are rewritten."

>
> But it doesn't seem to rewrite headers added by a system filter.


The patch for this bug turns out to be a one-liner. See below.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book




*** exim-4.20/src/filter.c  Mon May 12 14:39:19 2003
--- filter.c    Thu Jun 26 11:30:43 2003
***************
*** 2065,2070 ****
--- 2065,2071 ----
            {
            header_add(htype_other, "%s%s", s, (s[Ustrlen(s)-1] == '\n')?
              "" : "\n");
+           header_last->type = header_checkname(header_last, FALSE);
            }
          }