Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!uwvax!mcvoy From: mcvoy@uwvax.UUCP Newsgroups: comp.mail.uucp Subject: Rewriting rules (folklore) Message-ID: <3261@rsch.WISC.EDU> Date: Mon, 23-Feb-87 16:18:05 EST Article-I.D.: rsch.3261 Posted: Mon Feb 23 16:18:05 1987 Date-Received: Thu, 26-Feb-87 22:15:22 EST Distribution: comp Organization: U of Wisconsin CS Dept Lines: 35 Hi- I've written some software that I'm about to farm out to a couple of people that don't want to deal with sendmail/smail/uumail/whatever. All it does is allow you to specify where domainified/unknown mail should go for further rerouting, in other words it allows you to punt mail to a smart site. Here's the problem and question: the software has two forms route(addr) & rroute(addr) Route understands !'s and @'s, rroute deals with those and %'s. Rroute is intended for use as help to rmail, route as help to mail[x]. The rules I'm using are [R]route: 1) If the address contains a bang(!), don't touch. 2) If the address contains an @, try to rewrite. Rroute only: 3) If 1 & 2 fail, and there is a %, change the rightmost % to an @. Rroute is just a stub that applies rule three (if needed) and then passes the address to route. The rule that is questionable is rule #3. I need to know if that is acceptable to most sites that pass mail. The rewriting is done via a tempalte, so it's changeable on a per site basis, but rule #3 is hard coded. Please respond to the net. -- Larry McVoy mcvoy@rsch.wisc.edu, {seismo, topaz, harvard, ihnp4, etc}!uwvax!mcvoy "They're coming soon! Quad-stated guru-gates!"