Re: [exim-dev] How to change a header from local_scan() func…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Hilko Bengen
CC: exim-dev
Subject: Re: [exim-dev] How to change a header from local_scan() function?
On Sat, 20 May 2006, Hilko Bengen wrote:

> I would like to change the content of a message header from within a
> local_scan() function. Apparently, there is no function in Exim for
> doing that.
>
> Is it safe to simply traverse the 'header_list', look for the entry I
> want changed, and modify the slen and text fields there?


That should be OK. Alternatively, you can call header_remove() followed
by header_add() or header_add_at_position().



-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book