Re: [exim] Filtering e-mail by subject and redirecting to a …

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Magnus Holmgren
Data:  
Para: exim-users
Asunto: Re: [exim] Filtering e-mail by subject and redirecting to a pipe
On Monday 23 October 2006 10:30, Thomas Gericke took the opportunity to say:
> | begin routers
> |
> | test_subject_router:
> |         driver = redirect
> |         allow_filter
> |         file = /etc/exim4/filtersubject
> |         user = mail

You need a pipe_transport here.

> ... /etc/exim4/filtersubject:
> | # Exim filter
> | if error_message then
> |         finish
> | endif
> | if $h_subject: contains "blahblahblah" then
> |         pipe /path/to/script
> | endif

>
> When an e-mail arrives, nothing more happens than "normal" and local
> delivery.


-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)