9fans archive / 1998 / 08 / 24 /    prev next

From: arisawa@ar.aichi-u.ac.jp arisawa@ar.aichi-u.ac.jp
Subject: [9fans] /mail/lib/rewrite
Date: Wed, 19 Aug 1998 23:49:57 -0400 (EDT)

Hello 9fans!

I believe the following two lines
@([^@!,]*):([^!@]*)@([^!]*)	alias	\2@\3@\1
@([^@!]*),([^!@,]*):([^!@]*)@([^!]*)	alias	@\1:\3@\4@\2
in /mail/lib/rewrite intend to convert a route address, for example,
@A,@B:alice@C
to another route address
alice@C@B@A


However we can experiment:
term% upas/sendmail '-#' @A,@B:alice@C
invalid address: @A,@B:alice@C
term% upas/sendmail '-#' @A,B:alice@C
/mail/lib/qmail 'arisawa' 'net!A' 'B!C!alice'


I replaced second line to:
@([^!]*),@([^!@,]*):([^!@]*)@([^!]*)	alias	@\1:\3@\4@\2

Then we have:
term% upas/sendmail '-#' @A,@B:alice@C
/mail/lib/qmail 'arisawa' 'net!A' 'B!C!alice'
term% upas/sendmail '-#' @A,B:alice@C
Invalid address: @A,B:alice@C


RFC821 requires the format "@A,@B:alice@C" for route address,
not "@A,B:alice@C".

Bug in /mail/lib/rewrite?

Kenji Arisawa
E-mail: arisawa@aic...