9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <19980820034957.7CDNH7PGt0HmwvPMo9snavstd_cHvPNhiW7T7TULYQU@z> (raw)

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@aichi-u.ac.jp




             reply	other threads:[~1998-08-20  3:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-20  3:49 arisawa [this message]
1998-08-20 13:00 presotto
2000-07-04 10:30 arisawa
2000-07-04 15:23 Russ Cox
2002-05-01 14:21 [9fans] slow video fix Russ Cox
2002-05-01 16:41 ` [9fans] /mail/lib/rewrite Pat Hacker
2002-05-01 16:51 Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19980820034957.7CDNH7PGt0HmwvPMo9snavstd_cHvPNhiW7T7TULYQU@z \
    --to=arisawa@ar.aichi-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).