Re: [Exim] [root@charlotte.intern.cats.ms: Bug#53140: direct…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Kai Henningsen
Fecha:  
A: Mark Baker, Philip Hazel
Cc: exim-users, root
Asunto: Re: [Exim] [root@charlotte.intern.cats.ms: Bug#53140: director suffix option problem]
On 21 Mar 2000, at 8:38, Philip Hazel wrote:

> On Tue, 21 Mar 2000, Mark Baker wrote:
>
> > ----- Forwarded message from root <root@???> -----
> >
> > The director suffix option is supposed to be a string-list.
> >
> > However, suffix = .*:-* is _not_ equivalent to two separate directors with
> > .* rsp. -*; it does not recognize an address like user-some.thing-else
> > as belonging to user
>
> That is because the list is processed from left to right, and processing
> stops as soon as a suffix matches. It will turn that address into
>
> local_part = user-some
> suffix = .thing-else
>
> If you had defined the suffix list the other way round it would have
> turned it into
>
> local_part = user
> suffix = -some.thing-else
>
> I'm afraid that's just the way suffixes work.


Seems to me that's not very useful. Seems to me when there's need for
a string-*list* in the first place, you'd want the *correct* match,
not the *first*.

Maybe it would be better to not use a list, but (optionally?) use a
regex instead?


Regards - Kai Henningsen

-- 
http://www.cats.ms
Spuentrup CTI       Fon: +49 700 CALL CATS (=22 55 22 87)
Windbreede 12       Fax: +49 251 322312 99
D-48157 Muenster    Mob: +49 161 322312 1
Germany             GSM: +49 171 7755060