Lähettäjä: John R. Shearer Päiväys: Vastaanottaja: exim-users Aihe: [Exim] FW: Problem expanding added headers (v3.35)
I haven't received any response to this, so I did a little more research. I
am not a programmer, so digging into the source is well beyond my depth, but
I did it anyway.
It appears that the headers are stored in a link list called "headers_list",
whereas added headers are stored in "extra_headers". In expand.c headers
are expanded from "headers_list", but nowhere does it reference
"extra_headers". I can't seem to find "extra_headers" being attached or
pointed to by "headers_list" anywhere.
If I am reading this right, then expand.c isn't expanding added headers
because they're not in the link list it is checking. This would explain the
behavior I'm seeing.
As a non-programmer I'm not confident that I'm reading the code correctly.
Am I on the right track here, or am I off in the weeds?
- John R. S.
----------
From: John R. Shearer <exim-users@???>
Date: Thu, 19 Jun 2003 10:03:49 -0700
To: <exim-users@???>
Subject: Problem expanding added headers (v3.35)
I am trying to add a header that will be used as a flag in a later director.
The header is definitely added to the message (headers_add = X-Added-Header:
YES), but expanding it later via $h_X-Added-Header: or
$header_X-Added-Header: consistently returns <NULL>. Also
"def:h_X-Added-Header:" consistently expands to <FALSE> as well.
I've tried to dig up as much information on the headers_add option as I
could (I Read The Fine Manual, searched the Web, etc.), but there doesn't
seem to be much available.
Is this expected behavior, or am I doing something wrong?