On Wed, 26 Jan 2000, Steve Platt wrote:
> I've been trying to re-write some dodgy "From:" lines, which contain the "#"
> character.
>
> I read about "SMTP-time" re-writing ( the S flag ) and noted that it said it
> took place before any checking and was pleased with my first attempt at a
> regexp to match it.
But ... S rewriting applies only to envelope addresses - those that are
received in the SMTP dialogue. It was invented for fixing bent
envelopes.
> EG - I'd like to rewrite "user@dom.#22.other.stuff.top" into "user@???".
The S flag should allow you to rewrite such addresses in the envelope.
You should also be able to rewrite them in header lines, but only if you
do *not* set headers_check_syntax, which I think gets in first.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.