Using MH as the mail interface to rn
Robert Virding
robert at erix.UUCP
Sat Jan 18 03:15:06 AEST 1986
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
More information about the Comp.sources.unix
mailing list