usenet@egsner.cirr.com (Eric Schnoebelen) (10/05/89)
Hello All! Before I go digging into the code myself, and reinventing the wheel, does anyone know of, or have done, a set of patches for smail 2.5, to make it understand the %-@ hierarchy? ( You know, <user>%<site>@<site>, eg blah%bar@foo ) If anyone has such patches, please send a message. Otherwise, I'll dig in and make the patches myself, and I'll post them here.. Thanks, Eric
zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) (10/06/89)
All you really want to do is have smail change % to @ if there is no ! or
@ present (ie, it looks like a local address).
Just put this at the beginning and the end of resolve().
if (strchr(address,'!') == NULL
&& strchr(address,'@') == NULL
&& (ptr = strrchr(address,'%'))) *ptr = '@';
--
Branch Technology | zeeff@b-tech.ann-arbor.mi.us
| Ann Arbor, MI
agnew@trwrc.RC.TRW.COM (Robert A. Agnew) (10/10/89)
In article <9672@b-tech.ann-arbor.mi.us> zeeff@b-tech.ann-arbor.mi.us (Jon Zeeff) writes: > >All you really want to do is have smail change % to @ if there is no ! or >@ present (ie, it looks like a local address). > Are you sure? According to RFC-822, % has a higher precedence than @. Don't we have to scan context in order to determine the routing?