Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.mail Subject: Re: help -- uucp reroute Message-ID: <6410@utzoo.UUCP> Date: Fri, 21-Feb-86 14:27:18 EST Article-I.D.: utzoo.6410 Posted: Fri Feb 21 14:27:18 1986 Date-Received: Fri, 21-Feb-86 14:27:18 EST References: <149@bu-cs.UUCP> Organization: U of Toronto Zoology Lines: 15 > Write a little C program to go into /bin/rmail. Its only job will be > to pre-process the args and whatever and then exec() /usr/lib/rmail > with the corrected addresses... > ...It could possibly even be done with a shell > program but I would opt for C for flexibility... It can be done with a shell program, and should be. We do this all the time. In practice doing it in sh is *more* flexible than doing it in C, because there is less overhead in modifying it. This sort of text manipulation is a perfect application for shell programs. Undoubtedly one could devise cases complex enough to need C, but "don't fix it if it ain't broken"! -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry