[exim] Testing for the absence of a header

Etusivu
Poista viesti
Vastaa
Lähettäjä: Adam Nielsen
Päiväys:  
Vastaanottaja: exim-users
Uudet otsikot: Re: [exim] Testing for the absence of a header - solution
Aihe: [exim] Testing for the absence of a header
Hi everyone,

I'm a bit confused as to how to test for the absence of an e-mail header
in Exim's .forward file. The docs tell you how to do it in Exim's
configuration file, and then tell you it's possible in the .forward file
too, but the syntax appears to be different so I'm not really sure how
to get it to work.

All I want to do is move mail into a folder if the e-mail is missing the
"X-Spam-Score" header. Moving things into folders works fine, it's just
the condition I'm confused with. If anyone knows how to make this work,
do tell:

  # Exim filter
  if not def:header_x-spam-score: then
    save ".spam.unfiltered/"
  endif


Many thanks,
Adam.