[Exim] Filter-question

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Patrick von der Hagen
Date:  
À: exim-users
Sujet: [Exim] Filter-question
Hi all,

I'm just converting an old filter-File to exim and have a problem with
the pipe command.

The filter ist:
if ($header_subject: contains "statlog")
then
testprint "Sub=$h_subject:"
pipe "/opt/bin/gawk \'BEGIN {x=0} x==1 {print $0} NF==0 {x=1} \'
>> /var/pp/logs.bak/$h_subject: .\`/bin/date +%y-%m\`"
endif

without the linebreak in the pipe-command.

This filter does not work, since the $h_subject: doesn't seem to be
expanded when executed.

bash# /opt/exim/bin/exim -bf .forward </opt/pp/mailbox
Sender    = root@???
Recipient = root@???
Testing Exim filter file .forward


Testprint: Sub=statlog_i10s1
Pipe message to: /opt/bin/gawk 'BEGIN {x=0} x==1 {print $0} NF==0 {x=1}
' >> /var/pp/logs.bak/$h_subject: .`/bin/date +%y-%m`
Filter processing ended:
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.

Any hints why $h_subject isn't expanded?

--
CU,
Patrick.
"Never run on auto-pilot" - The Pragmatic Programmer