Re: [EXIM] Wanted: external filtering?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Lee McLoughlin
CC: exim-users
Tárgy: Re: [EXIM] Wanted: external filtering?
On Wed, 28 Jan 1998, Lee McLoughlin wrote:

> I've read throught filter.txt and haven't found a way to do this.
>
> What I'd like to do is run an external filter program from my .forward
> over incoming email to decide if its spam and use the exit code (or
> output?) in a conditional. This is to decide wether to junk the message
> or use the remaining rules in my .forward.


There is no way to do this. The filter doesn't do deliveries, it sets
up deliveries. The deliveries all happen at a later time, in separate
processes (in the case of local deliveries). It is then far too late to
use the results of (e.g. a pipe) delivery to affect the forward file.

All I can suggest is that you do something like

  if $h_X-been-here-before is "" then 
    pipe /your/script
    finish
  else
    other rules
  endif


where your script either junks the message, or adds an X-been-here-before      
header and sends it back to you. A messy fudge.


I'll think about the problem, but it doesn't fit well with the way
things work.

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



--
*** Exim information can be found at http://www.exim.org/ ***