[comp.mail.sendmail] is uunet breaking your headers?

Makey@Logicon.COM (Jeff Makey) (05/26/90)

In article <KARL.90May25090924@giza.cis.ohio-state.edu> karl_kleinpaste@cis.ohio-state.edu writes:
>The complete set is:
>
>R$*.$*!$*@$*		$1.$2!$3		lose @-portion
>R$*!$*.$*!$*		$2.$3!$4		strip excess left-hand
>R$*.$*!$*		$3@$1.$2		invert to @-format

If you insist on doing Rabid Rerouting (a controversial decision I see
no point in discussing here), then this looks like a good way to do
it, except that I would replace all of the "$*" elements with "$+"
to keep from rewriting such obvious garbage as "!.!@".

I believe the original question was simply how to change
"host.domain!user" into "user@host.domain", with no suggestion that
rerouting was desired.  Here is one way to do it in sendmail:

R$+.$+!$+		$@$3<@$1.$2>		resolve mixed UUCP/domain

It belongs near the end of ruleset 3, *after* this rule:

R$*<@$+>		$@$1<@$2>		already canonical

Note that if either of these rules is applied it will result in the
current ruleset being exited.  Your usage may vary.

                           :: Jeff Makey

Department of Tautological Pleonasms and Superfluous Redundancies Department
    Disclaimer: All opinions are strictly those of the author.
    Internet: Makey@Logicon.COM    UUCP: {nosc,ucsd}!logicon.com!Makey