Path: utzoo!mnetor!uunet!husc6!mit-eddie!mit-amt!mob From: mob@mit-amt.MEDIA.MIT.EDU (Mario O Bourgoin) Newsgroups: comp.mail.mh Subject: Re: turning news articles into MH messages Message-ID: <1848@mit-amt.MEDIA.MIT.EDU> Date: 30 Dec 87 12:50:17 GMT References: <207@ksr.UUCP> Reply-To: mob@media-lab.MEDIA.MIT.EDU (Mario O Bourgoin) Organization: MIT Media Lab, Cambridge MA Lines: 55 I think I take the cake for the most complex solution. I use rn's facilities for saving messages and give a shell script as my saver. ENVIRONMENT: setenv RNINIT ~/.rnrc FILE .rnrc: -EMAILHEADER="To: %T Subject: %(%i=^$?:Re: %S Newsgroups: %n In-Reply-To: %i) Fcc: outbox -------- " -EMAILPOSTER="~/.rn_mailer %h" -EMBOXSAVER="~/.rn_saver %b %A" -ESAVEDIR="~/Mail" -ESAVENAME="article" FILE .rn_saver #! /bin/csh -f # Rn-Mh Mailmode article saver. # # Arguments: # If the folder exists # $1 //article # Else # $1 / # Then # $2 Source article. set folder=$1 if ("$1:t" == "article") set folder=$folder:h inc -silent +$folder:t -file $2 FILE .rn_mailer #! /bin/csh -f # Rn-Mh Mailer. # # Arguments: # $1 The mail header file. # Include a copy of the message in the drafts folder. inc -silent +drafts -file $1 # Edit the message. comp -use