Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!ora.ora.COM!jerry From: jerry@ora.ora.COM (Jerry Peek) Newsgroups: comp.mail.mh Subject: Re: changing a path for the inc command only Message-ID: Date: 18 Dec 90 15:11:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 33 Laura Pate wrote: > ... 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)... You're welcome. BTW, I've been getting a fair amount of mail asking about the new Nutshell Handbook that I wrote on MH & xmh. It's going to the printer this week and should be out mid-January. It has two chapters about shell programming and programming with MH, as well as a lot of other info about customizing MH and xmh. But enough of that... > 1- is there a better way to do this? Could I somehow change where mh > looks for inc? I like Eric Ziegast's idea of making a new directory and adding it to the PATH. Just be careful that the new PATH doesn't get propagated to programs or users who need the default version of 'inc'. >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. In the book, I suggest making a directory full of symbolic links that point to the real MH commands, like this: forw -> /usr/local/mh/bin/forw But, instead of making a link to the "real inc" in /usr/local/mh/bin/inc, link to your front-end 'inc' shell script. Or, just put the script in the directory with the symlinks. Then, set xmh's MhPath to point to your new directory. In fact, you could use this directory for MH users, too. Put it in their PATH ahead of the default MH directory. --Jerry Peek, jerry@ora.com (on vacation until January, whew)