Path: utzoo!utgpu!attcan!uunet!mcvax!denise From: denise@cwi.nl (Denise L. Draper) Newsgroups: comp.mail.mh Subject: Re: help, please Summary: rn macro to save files in mh Message-ID: <754@sering.cwi.nl> Date: 5 Jan 89 15:18:34 GMT References: <5816@gssc.UUCP> Organization: CWI, Amsterdam Lines: 41 In article <5816@gssc.UUCP> jdm@gssc.UUCP (John D. Miller) writes: > 2. i also us rn and would like to be able to save articles in a format > that can be used by mh. i already use the option that saves articles > as discrete files, but they are not mh format. i used to use the > rn option that saved articles in an amorphous file (by newsgroup), > which let me view them with Mail. Just in case various people might find this useful, I thought I'd post my little macro: @m |sed -f .mhstrip|rcvstore + You complete the invocation with the folder name to store the article in. The file .mhstrip resides in my News directory (%p in rn-ese), and has the following contents: --- cut here --- /^$/,$b /^From /d /^Relay-/d /^Posting-/d /^Path:/d /^Article-/d /^Lines:/d /^Xpath:/d /^Xref:/d /^Distribution/d /^Date-Received:/s//Date:/ /^Approved:/d /^Expires:/d /^>From:/s//From:/ /^From:/s/From: \([^ ][^ ]*\) (\([^)][^)]*\))/From: \2 <\1>/ /^Subject:/s/:/: (Net)/ --- cut here --- Many of the lines are optional, and just get rid of junk that I don't want to see, but the three `From' lines are necessary, as is the Date-Received line. Denise Draper denise@cwi.nl Centrum voor Wiskunde en Informatica ...!uunet!mcvax!denise