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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kai Henningsen
Datum:  
To: Kai Henningsen, Philip Hazel
CC: Mark Baker, exim-users, root
Betreff: Re: [Exim] [root@charlotte.intern.cats.ms: Bug#53140: director suffix option problem]
On 21 Mar 2000, at 10:28, Philip Hazel wrote:

> On Tue, 21 Mar 2000, Kai Henningsen wrote:
>
> > 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*.
>
> Please define "correct". It could be
>
>    first
>    last
>    longest
>    shortest   
>    ...

>
> I rather suspect different people would chose different ones.


Well, the director in question will have some test of validity for
the truncated localpart. When there are several possible ways to
truncate, and only one gives a hit, "correct" is pretty clear, if not
always practical.

OTOH, it's actually simpler than that. We already have several ways
to truncate, in a case like userid-ext-ext2 and a -* pattern. In this
case, the spec says to use the longest sequence; so using the longest
match would be an obvious choice, and, in fact, that was exactly what
I expected exim to do. Even more, I still think anything different
must be considered a bug.

And, having done "take the longest match from a list" code myself,
it's also pretty easy to do. Hmm. Would you accept a patch that made
exim do so?


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