Re: Using filter to identify if a header is present

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Henders
CC: exim-users
Subject: Re: Using filter to identify if a header is present
On Tue, 15 Jul 1997, John Henders wrote:

> I'm struggling trying to find a way to test merely for the existance of
> a header entry, in particular, X-UIDL, which currently is only present
> in spam mail. It seems like filter cannot do this, at least everything
> I've tried doesn't work, using wildcards to match the random string of
> digits in the X-UIDL header doesn't do what I want. Is there a way to
> test for the mere existance of a header entry, regardless of what it
> contains?


if $h_X-UIDL is not ""

works for me. Of course, it won't pick up an empty header...

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714