[Exim] headers_add and exim-filters

Top Page
Delete this message
Reply to this message
Author: Hans Morten Kind
Date:  
To: exim-users
Subject: [Exim] headers_add and exim-filters
A forwardfile director is expanding a file to a local user and
adding a header. The header is present after delivery with the
localuser director. However the added header is not available
to the user's exim-filter (~/.forward): it is not enclosed in
$message_headers nor the $header_ variables. The header is
also present if the filter calls the file_transport address_file
with the save command.

Seen on exim-3.14/Solaris7. Is there any way to do local
filtering on headers added by a previous director?


Hans Morten Kind
Univ of Bergen


# TRANPORTS CONFIGURATION
######################################

local_delivery:
driver = appendfile
file = /var/spool/mail/${local_part}
delivery_date_add
envelope_to_add
return_path_add

address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add

end

# DIRECTORS CONFIGURATION
##############################################

lists:
driver = forwardfile
file_transport = address_file
domains = lists.student.uib.no
file = /local/exim/tab/lists/${local_part}
no_check_local_user
forbid_pipe
forbid_file
headers_add = "X-list: ${local_part}@???"
errors_to = listmaster@???
no_more

userforward:
driver = forwardfile
file_transport = address_file
pipe_transport = address_pipe
no_verify
check_ancestor
file = .forward
suffix = +*
suffix_optional
filter

localuser:
driver = localuser
transport = local_delivery

end