On Tue, 21 Mar 2000, Kai Henningsen wrote:
> 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.
No, that is precisely what does NOT happen. The director is not run if
the suffix does not match. That's what I said before. It is purely a
textual matching process. The validity of what is left as the local part
is not checkable at this time.
> 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?
Is it worth it? How often does this problem arise in practice? [As it
happens, I have re-organized that code recently, for other reasons, so a
straight patch won't work in the next release.]
(I hope you aren't now also going to suggest a change to regular
expression matching in PCRE to go for the longest possible match... :-)
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.