Re: [exim] Personal test in routers

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthias Waffenschmidt
Dátum:  
Címzett: Arkadiusz Patyk
CC: exim-users
Tárgy: Re: [exim] Personal test in routers
Hello,

On Sat, Sep 15, 2007 at 08:27:43PM +0200, Arkadiusz Patyk wrote:
> I'm implementing vacation feature using the autoreply transport with
> LDAP backend.
> I want to do a 'personal' test (like the one done by the keyword
> 'personal' in exim filters) inside a router condition.
>
> Any idea?


If you want to use the router for verification you're certainly at a
loss, because there are no header information available yet.

If you only want to route the mails based on the personal condition,
you have to transform the definition of personal given in chapter 3.29
into a (rather long) router condition. This would look like (untested,
only transforming the first three lines, but the principle should be
clear):

condition = ${if and { \
                         {!eq {$sender_address}{}} \
                         {!def:h_List-Id:} \
                         {!def:h_List-Help:} \
                      } \
              }


-- 
Gruss / Best regards   |  LF.net GmbH        |  fon +49 711 90074-411
Matthias Waffenschmidt |  Ruppmannstr. 27    |  fax +49 711 90074-33
mw@???              |  D-70565 Stuttgart  |  http://www.lf.net