[comp.mail.mh] rn macros for mh

emv@math.lsa.umich.edu (Edward Vielmetti) (03/17/89)

I'm looking for a spiffy interface between mh and rn, so I can save
netnews articles in mh folders.  Send me mail and I'll reply and 
summarize here.

--Ed

Edward Vielmetti (emv@math.lsa.umich.edu)
U of Michigan Math Dep't, (computing center unix project in exile)

jlc@sdsu.UUCP (John Carroll @ Muppet Labs) (03/18/89)

In article <591@stag.math.lsa.umich.edu> emv@math.lsa.umich.edu
(Edward Vielmetti) writes:
>	I'm looking for a spiffy interface between mh and rn, so I can save
>	netnews articles in mh folders.  Send me mail and I'll reply and 
>	summarize here.

Actually, mh and rn are sufficiently robust so that all you have to do is
use the proper defaults.  The following definitely works with csh, and 
probably works without much change in other shells.  We seem to be
running version 6.5 of mh, and a copy of rn compiled 85/09/10.  Here's
what you need in your .login:

setenv SAVEDIR	"../Mail/.%C"
setenv SAVENAME	"%a"
setenv RNINIT	"-M"

The SAVEDIR default ensures that when you save (s) an article, instead
of going into ~/News, it instead winds up in your mh Mail directory.
For example, articles from this newsgroup are put in .comp.mail.mh;  I
then use soft links to set up more reasonable names.  In this case,
show last +mh
would give the most recently saved mh article due to the link:
lrwxrwxrwx  jlc  /math1/faculty/jlc/Mail/mh -> .comp.mail.mh/

(I prefer to use "ls ~/Mail" rather than "folders" to review my folders,
and long folder names destroy the compactness of the display);
setenv SAVEDIR	"../Mail/%C"
will avoid prepending the initial "." if you prefer the long names and do
not want to use soft links.  The RNINIT default ensures that articles
are saved in a format with which mh is happy.  I don't think my other
defaults affect anything, but for completeness, let me mention that my
full RNINIT line in my .login is:
setenv RNINIT	"-S5 -e -g4 -4800-i=10 -L -m=u -M -4800-h +horg +hsum"

The SAVENAME default ensures that messages will be saved with an mh
message number matching the rn article number, which can be a problem
in some groups because mh does not seem to like numbers over 9999.
However, "sortm" will renumber even these large numbers beautifully, so
it is not much of a problem.

Once saved in this manner, articles behave like regular e-mail messages;
for example, I used rn to save your posting, and then used "reply" in
mh to send you a copy of this message.

I hope this is what you were looking for...

Cheers,
John Carroll

allbery@ncoast.ORG (Brandon S. Allbery) (03/28/89)

As quoted from <3569@sdsu.UUCP> by jlc@sdsu.UUCP (John Carroll @ Muppet Labs):
+---------------
| In article <591@stag.math.lsa.umich.edu> emv@math.lsa.umich.edu
| (Edward Vielmetti) writes:
| >	I'm looking for a spiffy interface between mh and rn, so I can save
| >	netnews articles in mh folders.  Send me mail and I'll reply and 
| >	summarize here.
| 
| setenv SAVEDIR	"../Mail/.%C"
| setenv SAVENAME	"%a"
| setenv RNINIT	"-M"
+---------------

Actually, there is a more robust way than this:

	&&s |/usr/new/mh/lib/rcvstore +.%C^J

This defines an rn macro to save the article by "inc"ing it into a folder,
just as above.  I use this (well, almost this:  "rcvstore" is linked into
our MH bin directory as well as the lib directory, and I don't use an
automatic folder name because I group stuff by subject instead of newsgroup)
daily, and have so used it for months without problems.

++Brandon
-- 
Brandon S. Allbery, moderator of comp.sources.misc	     allbery@ncoast.org
uunet!hal.cwru.edu!ncoast!allbery		    ncoast!allbery@hal.cwru.edu
      Send comp.sources.misc submissions to comp-sources-misc@<backbone>
NCoast Public Access UN*X - (216) 781-6201, 300/1200/2400 baud, login: makeuser