Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!mcvax!enea!erix!robert From: robert@erix.UUCP (Robert Virding) Newsgroups: net.sources Subject: Re: Using MH as the mail interface to rn Message-ID: <1039@erix.UUCP> Date: Fri, 17-Jan-86 12:15:06 EST Article-I.D.: erix.1039 Posted: Fri Jan 17 12:15:06 1986 Date-Received: Mon, 20-Jan-86 05:06:34 EST References: <14512@rochester.UUCP> Reply-To: robert@erix.UUCP (Robert Virding) Organization: L M Ericsson, Stockholm, Sweden Lines: 34 There's an easier way to do it which also allows using draft folders in MH. In .login (or whatever, .rninit is also a good place): setenv EMAILPOSTER "~/bin/mh comp -form %h" setenv EMAILHEADER \ 'To: %f\\n\ Cc: %L\\n\ Subject: Re: %S\\n\ In-Reply-To: Your message of %[date]\\n\ %i\\n\ %(%[references]!=^\$?References\\: %[references]\\n)\ Newsgroups: %n\\n-------\\n' ~/bin/mh is defined as: #! /bin/sh # A small shell script to run the MH-system. # Includes the mh command directory in the PATH # If a (mh) command is given this is run instead. # export PATH; PATH=/usr/new/mh:$PATH # the mh-system commands if [ $# = 0 ] then export PS1; PS1="MH> " # an informative prompt used by sh exec $SHELL # use the default shell else exec sh -c "$*" # run through shell fi This file is fine for running a subshell for MH as well. Robert Virding @ L M Ericsson, Stockholm UUCP: {decvax,philabs,seismo}!mcvax!enea!erix!robert