[exim] unseen deliver with with different subjects

Top Page
Delete this message
Reply to this message
Author: N. T.
Date:  
To: exim-users
Subject: [exim] unseen deliver with with different subjects
Hi,

I'm trying to apply an exim filter to send one mail to two different adresses but with different subjects
My filter looks like this :
if $h_Cc: contains "@" and $h_subject: matches "([0-9a-zA-Z ,!]*) (<([0-9]*)>) (<TOKEN>) (\[[0-9]+\])" then
  headers remove subject
  headers add "Subject: <Ref$3> $1"
  unseen deliver $h_Cc:
  headers remove subject
  headers add "Subject: $1 $2 $4 $5"
  headers remove cc
endif

I was expecting that the mail sent to $h_Cc: contains the subject "<Ref$3> $1", but unfortunnately it's the second one ("$1 $2 $4 $5"). Can anybody explain me why ?

Any help would be really appreciated...
Nicolas.

PS : I'm running Exim 3.35.

Recevez l'Actualité en temps réel par email avec Track'n feed - http://www.tracknfeed.com