great..

will this also possible in regexp?..change both domain and user part of
email address ?

From:mys...@thisdomain.com to yourself@thatdomain.
<1...@thatdomain.com>

On Mon, Nov 12, 2012 at 6:29 PM, Ralf Hildebrandt <r...@sys4.de> wrote:

> * Prashanth P.Nair <prashanth...@gmail.com>:
> > How to re-write "From: My Self <mys...@thisdomain.com>" to From: My
> Self <
> > mys...@thatdomain.com> using regexp .
> >
> > I know the sender_canonical_maps changes both the envelop sender address
> > and header sender address according to the sender_canonical_classes.
> >
> > Below regexp is converting all the emails from @thisdomain.com to
> > @thatdomain.com.But i need only for specif email address.Any way to
> achieve
> > using regexp?
> >
> >
> > /^(.*@)thisdomain.com$/     ${1}thatdomain.com
>
> /^(myself|somebodyelse)@thisdomain.com$/     ${1}@thatdomain.com
>
> --
> [*] sys4 AG
>
> http://sys4.de, +49 (89) 30 90 46 64
> Franziskanerstraße 15, 81669 München
>
> Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
> Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
> Aufsichtsratsvorsitzender: Joerg Heidrich
>
>

Reply via email to