Using MH as the mail interface to rn

Ipse dixit ken at rochester.UUCP
Thu Jan 16 05:58:01 AEST 1986


[I fear you, line eater]

I'm told the line eater munched the first posting. Let's try this once more...

--
When a friend asked me how to save his outgoing responses to netnews
I realized that MH could be made the mail interface to rn. Below
is how. You may like to customize a bit.

In .login or .cshrc: (sh users can translate)

setenv MAILPOSTER "~/bin/rnmail %h"
setenv MAILHEADER \
'To: %T\
Subject: %(%i=^$?:Re: %S\
Fcc: +CC\
Newsgroups: %n\
In-Reply-To: %i)\
%(%[references]!=^$?References\: %[references]\
)Organization: %o\
\
'

In ~/bin/rnmail: (or whatever you choose to call it)

#! /bin/sh

export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)

cat=/bin/cat
echo=/bin/echo
test=/bin/test
defeditor=prompter

draftfile=`mhpath +`/rndraft
dotdir=${DOTDIR-${HOME-$LOGDIR}}

$cat $1 > $draftfile
if $test -f $dotdir/.signature; then
	$echo "--" >> $draftfile
	$cat $dotdir/.signature >> $draftfile
fi
exec comp -use -editor ${VISUAL-${EDITOR-$defeditor}} -file $draftfile

That's all. Have fun.

	Ken
-- 
UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken at rochester.arpa
Snail: Comp. of Disp. Sci., U. of Roch., NY 14627. Voice: Ken!



More information about the Comp.sources.unix mailing list