Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ucbcad!ucbvax!ucbarpa.Berkeley.EDU!leres From: leres@ucbarpa.Berkeley.EDU (Craig Leres) Newsgroups: comp.mail.mh Subject: Re: turning news articles into MH messages Message-ID: <22344@ucbvax.BERKELEY.EDU> Date: 30 Dec 87 05:11:06 GMT References: <207@ksr.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: leres@ucbarpa.Berkeley.EDU (Craig Leres) Lines: 45 I use the appended script in conjunction with this .rnmac entry: s s|rntomh %C %a^J I used to use inc but this is much faster. Craig ------ #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # rntomh # This archive created: Tue Dec 29 21:09:38 1987 export PATH; PATH=/bin:$PATH echo shar: extracting "'rntomh'" '(260 characters)' if test -f 'rntomh' then echo shar: will not over-write existing file "'rntomh'" else sed 's/^X//' << \SHAR_EOF > 'rntomh' X#!/bin/csh -f X# X# rntomh X# X# Arguments: X# %C newsgroup name, dot form X# %a article number X# X# Stdin: X# the article to save X Xset folder=+news X( echo "Article: $2 of $1" ; cat ) | /usr/new/lib/mh/rcvstore $folder X Xecho Saved article $2 of $1 to $folder. SHAR_EOF if test 260 -ne "`wc -c < 'rntomh'`" then echo shar: error transmitting "'rntomh'" '(should have been 260 characters)' fi chmod +x 'rntomh' fi # end of overwriting check # End of shell archive exit 0