[comp.mail.sendmail] Rewrite rules question

rbv@cypress.UUCP (Roger Vanderveen) (10/03/90)

How and in what rule can I rewrite the following:

	1) Outbound "Return-Path"

	      from charlie!able

	      to charlie!baker!able

	2) Inbound "To"

	      from charlie!able

	      to charlie!baker!able

Thanks.
Roger
-- 
===============================================================================
Roger Vanderveen                                      rbv@cypress.UUCP
Santa Clara, CA USA                                   76317.1321@compuserve.com
===============================================================================

smartin@torsys02_1.uucp (Stephen Martin) (10/04/90)

In article <509@cypress.UUCP> rbv@cypress.UUCP (Roger Vanderveen) writes:



> How and in what rule can I rewrite the following:
>
>	   1) Outbound "Return-Path"
>		 from charlie!able
>		 to charlie!baker!able
>
>	   2) Inbound "To"
>		 from charlie!able
>		 to charlie!baker!able

Try rule S3, I would suggest putting the following line just before the
rule tryes to convert old style addresses (ones containing !) to new style
ones:

Rcharlie!$*	charlie!able!$1


--
Stephen Martin               -------    LSI Logic Corporation of Canada, Inc.
Phone: (416) 620-7400     LSI|LOGIC|    Suite 1110, 401 The West Mall,        
Fax:   (416) 620-5005        |     |    Etobicoke, Ontario, Canada.
Email: smartin@lsican.uucp   -------    M9C 5J5
 or    smartin@Canada.lsil.com

rickert@mp.cs.niu.edu (Neil Rickert) (10/05/90)

In article <SMARTIN.90Oct4090357@torsys02_1.uucp> smartin@torsys02_1.uucp (Stephen Martin) writes:
>In article <509@cypress.UUCP> rbv@cypress.UUCP (Roger Vanderveen) writes:
>
>> How and in what rule can I rewrite the following:
>>(...)
>Try rule S3, I would suggest putting the following line just before the
>rule tryes to convert old style addresses (ones containing !) to new style
>ones:
>
>Rcharlie!$*	charlie!able!$1
>
  OOPS.  Don't try this.

  This will make the following changes:

  charlie!baker
    -> charlie!able!baker
    -> charlie!able!able!baker
    -> charlie!able!able!able!baker

etc.  Eventually you will get an error message.  At the very least, you
must put a '$:' on the RHS.
-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115.                                  +1-815-753-6940