Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!mailrus!umix!metavax!b-tech!zeeff From: zeeff@b-tech.UUCP (Jon Zeeff) Newsgroups: comp.mail.uucp Subject: Re: Rerouting of explicit paths Message-ID: <4300@b-tech.UUCP> Date: 10 Mar 88 18:31:48 GMT References: <327@vsi1.UUCP> <475@minya.UUCP> Reply-To: zeeff@b-tech.UUCP (Jon Zeeff) Organization: Branch Technology Ann Arbor, MI Lines: 34 Here are some quick hacks I did to smail 2.5 to "improve it". The authors might want to consider something similar. Add the following to the beginning of the resolve routine in resolve.c --------------------------------------------------------- char *ptr; /* count number of ! */ for (i=0,ptr = address; ptr = strchr(ptr,'!'); ++ptr,++i); /* if more than 10, we want to reroute since it's probably a news reply */ if (i > 10) routing = REROUTE; /* sometimes someone sends mail to "user%othersite@thissite". Since a local address (no ! or @) with a % will fail anyway, let's attempt to fix it like a sendmail site would. */ if (strchr(address,'!') == NULL && strchr(address,'@') == NULL && (ptr = strrchr(address,'%'))) *ptr = '@'; ----------------------------------------------------------- In my opinion, smail is a nice piece of software. If you don't use it, you probably should. -- Jon Zeeff Branch Technology, uunet!umix!b-tech!zeeff zeeff%b-tech.uucp@umix.cc.umich.edu