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

Pàgina inicial
Delete this message
Reply to this message
Autor: Magnus Holmgren
Data:  
A: exim-users
Assumpte: 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)