Hi all,

I found out what the problem is and have some questions about the
solution:

if not first_delivery
then
   finish
endif

if foranyaddress $recipients ( $thisaddress   is    [EMAIL PROTECTED] )
then
        unseen deliver [EMAIL PROTECTED] errors_to [EMAIL PROTECTED]
        headers add "X-test-header: test"
endif

The first_delivery condition at the beginning of the filter causes
the recipient added by the system filter at the first delivery 
attempt to be dropped silently at subsequent attempts, obviously 
because unseen finish overrules unseen deliver? Is that true? 
I think I'm overlooking something in the documentation. 

The FAQ (http://wiki.exim.org/FAQ/Miscellaneous/Q5033) says that 
an unseen deliver is the easiest way to send a copy message. 
Without the first_delivery condition above, if there is a message 
to [EMAIL PROTECTED] and the mailserver for the domain 
ouside.com is unreachable (connection times out), then there are 
multiple filter runs for this one message. Is there more than one 
unseen deliver to [EMAIL PROTECTED] as a consequence? After 
all, every time the filter is run, another X-test-header is added 
to the message.

On a different note: is there a way to make exim log the fact that 
a recipient has been added by the system filter before the actual 
delivery to that recipient takes place? Something like this:

2008-06-18 10:57:25 1K8tTp-0002DV-Ir <= [EMAIL PROTECTED] [4.5.6.7] P=esmtp 
S=6728 [EMAIL PROTECTED]
2008-06-18 10:57:28 1K8tTp-0002DV-Ir unseen deliver to order.copy 
<system-filter> requested
2008-06-18 10:57:28 1K8tTp-0002DV-Ir => order.copy <system-filter> R=procmail 
T=procmail_pipe
2008-06-18 10:57:28 1K8tTp-0002DV-Ir => [EMAIL PROTECTED] R=imap_pop3_server2 
T=remote_smtp 
2008-06-18 10:57:28 1K8tTp-0002DV-Ir Completed

Kind regards,
Dominik


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to