Re: [Exim] Weird (stupid?) rewrite question

Top Page
Delete this message
Reply to this message
Author: George Schlossnagle
Date:  
To: Phil Pennock
CC: exim-users
Subject: Re: [Exim] Weird (stupid?) rewrite question
Snipped output from expansion test:

Testing nobody@???
nobody@??? in
nobody@bp[^.]+.internal.blackplanet.com? no (end of list)
nobody@??? in
nobody@mg[^.]+.internal.blackplanet.com? no (end of list)
nobody@??? in
nobody@mg[^.]+.db.blackplanet.com? no (end of list)




Phil Pennock wrote:
>
> On 2000-10-03 at 14:14 -0400, Peter Radcliffe gifted us with:
> > ^(?i)[^@]+@mg[^.]+.my.domain bob@???
> > ^(?i)[^@]+@bp[^.]+.my.domain bob@???
>
> Wouldn't that rewrite <fred@mg@???> to <bob@???> ?
>
> Yours is probably more efficient than this, but surely:
> ^(?i).+@mg[^@.]+.my.domain bob@???
> ^(?i).+@bp[^@.]+.my.domain bob@???
> is more accurate?
>
> And now someone will either optimise that, or explain why I'm wrong.
> ;^)
> --
> Civilisation: where they cut down the trees and name streets after them.
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##