This is a multi-part message in MIME format.
--
Hi all,
I have have googled through the archive and scanned the FAQ but couldn't
find any pointers on the following.
Consider my .forward file (attached), in particular the following rule:
testprint $h_Sender:
if $h_Sender: matches "vim-return-([0-9]+)-paul=myitcv.org.uk@???"
then save Mail/Mailing_Lists/vim
endif
The exim version is:
$ exim -bV
Exim version 4.20 #1 built 08-Jul-2003 13:59:46
Copyright (c) University of Cambridge 2003
Probably GDBM (native mode)
Support for: PAM TCPwrappers OpenSSL
Authenticators: plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile autoreply pipe smtp
Configuration file is /etc/exim/exim.conf
$ exim -bf .forward < exim/test_vim.message
Sender taken from "From" line
Sender = vim-return-43502-paul=myitcv.org.uk@???
Recipient = paj00@???
Testing Exim filter file forward
Logfile /homes/paj00/.exim-filter
Testprint:
Filtering did not set up a significant delivery.
Normal delivery will occur.
"Testprint" in the output corresponds to the rule above. The "From" line
in the input to the test is:
From vim-return-43502-paul=myitcv.org.uk@??? Tue Feb 24 14:56:11 2004
Why is $h_sender: null in the testprint? For other inputs, $h_sender is
not null. eg where "From" line is:
From y-devel-bounces+paul=myitcv.org.uk@??? Tue Feb 24
00:09:37 2004
output is:
Sender taken from "From" line
Sender = y-devel-bounces+paul=myitcv.org.uk@???
Recipient = paj00@???
Testing Exim filter file forward
Logfile /homes/paj00/.exim-filter
Testprint: y-devel-bounces+paul=myitcv.org.uk@???
Save message to: Mail/Mailing_Lists/y-devel
Finish
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.
I am clueless as to why $h_sender is null for the vim list. Please can
someone put my mind at ease?
Many thanks in advance.
Paul
--
Department of Computing, Imperial College London
http://myitcv.org.uk/
--
# Exim filter
# Setup log file
logfile /homes/paj00/.exim-filter
if error_message
then finish
endif
if foranyaddress $h_to:,$h_cc:
($thisaddress contains automake@???)
then save Mail/Mailing_Lists/Automake
endif
if foranyaddress $h_to:,$h_cc:
($thisaddress contains autoconf@???)
then save Mail/Mailing_Lists/Autoconf
endif
testprint $h_Sender:
if $h_Sender: matches "vim-return-([0-9]+)-paul=myitcv.org.uk@???"
then save Mail/Mailing_Lists/vim
endif
if $h_sender: contains y-devel-bounces+paul=myitcv.org.uk@???
then save Mail/Mailing_Lists/y-devel
endif
if $h_sender: contains latex2html-bounces@???
then save Mail/Mailing_Lists/latex2html
endif
if foranyaddress $h_to:,$h_cc:
($thisaddress contains bug-cvs@???)
then save Mail/Mailing_Lists/CVS
endif
if $h_Sender: matches "ic-linux-(list|discuss)-bounces@(ic|imperial).ac.uk"
then save Mail/Mailing_Lists/LUG
endif
if delivered
then finish
endif
if $h_X-Spam-Level: begins "****"
then
save Mail/Junk
logwrite "Junk to $header_to >> $header_subject"
finish
endif
# End of Mail processing
--