Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!rutgers!bellcore!porthos!sword.bellcore.com!laurap From: laurap@sword.bellcore.com (Laura R. Pate) Newsgroups: comp.mail.mh Subject: changing a path for the inc command only Message-ID: <1990Dec14.154913.22032@porthos.cc.bellcore.com> Date: 14 Dec 90 15:49:13 GMT Sender: @porthos.cc.bellcore.com Reply-To: laurap@sword.bellcore.com (Laura R. Pate) Distribution: na Organization: Bell Communications Research, Red Bank, NJ Lines: 20 I am setting up a mail group for several users and would like to offer them a way to automatically refile mail from a particular source when inc is invoked. I want this to be as transparent to them as possible. I've put together a shell script (my thanks to Jerry Peek) that calls inc, scans the messages and refiles according to the 'to' field. I can alias this script to inc and have it work as I'd like, but I have two problems/questions: 1- is there a better way to do this? Could I somehow change where mh looks for inc? MhPath changes where it looks for all mh commands and I don't want to get into having a separate set of mh commands (or even a separate directory link) just for these users. 2- There are also xmh users and I'd like to change where xmh looks for inc too. Just aliasing it doesn't work in this case. Any ideas would be appreciated. Thanks, Laura Pate