Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rochester.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!ken From: ken@rochester.UUCP (Ipse dixit) Newsgroups: net.sources Subject: Re: Using MH as the mail interface to rn Message-ID: <14571@rochester.UUCP> Date: Wed, 15-Jan-86 14:58:01 EST Article-I.D.: rocheste.14571 Posted: Wed Jan 15 14:58:01 1986 Date-Received: Fri, 17-Jan-86 06:21:22 EST References: <14512@rochester.UUCP> Reply-To: ken@rochester.UUCP (Ipse dixit) Organization: Sans Serif Lines: 50 [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@rochester.arpa Snail: Comp. of Disp. Sci., U. of Roch., NY 14627. Voice: Ken!