Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!ucsd!nosc!crash!ncr-sd!se-sd!bhoule From: bhoule@se-sd.SanDiego.NCR.COM (Bill Houle) Newsgroups: comp.mail.elm Subject: Re: Making a newsgroup into a folder Keywords: folder newsgroup extract elm vnews Message-ID: <4351@se-sd.SanDiego.NCR.COM> Date: 29 Jan 91 03:17:39 GMT References: <339@schoenfinkel.CS.UWindsor.Ca> <1398@vision.UUCP> Organization: NCR Corporation, Systems Engineering - San Diego Lines: 50 In article <339@schoenfinkel.CS.UWindsor.Ca> wisdom@CS.UWindsor.Ca (CSS Newsletter) writes: >All I really want to be able to do (for example) is: > cd /usr/spool/news/comp/mail/elm > cat * >~/Mail/cm-elm > elm -f =cm-elm >And read Usenet groups THAT way! [...] In <1398@vision.UUCP> chris@vision.UUCP (Chris Davies) writes: >I would consider piping each message into rmail (/bin/rmail on this SysV.3 >machine). You would then need some way of persuading mail to drop such >messages into your required folder. Or something like the following could be done: for f in * do news-to-mail $f ~/Mail/cm-elm done where 'news-to-mail' is a script like so: #!/bin/sh # # $1 == news article # $2 == mail folder # ex - $1 >/dev/null << E*O*F /^Date: ya ?^Path: pu - j g/^Path:/s/Date: //g g/^Path:/s//From/g w! >> $2 q E*O*F The only reason to do it this way would be if rmail is a hog as compared to ex or sed or whatever header mangler is used. Note that the date will come out screwy under Elm; this is because the Date header in news is "day month yr" and mail uses "dow month day year". Small price to pay. -- Bill Houle bhoule@se-sd.SanDiego.NCR.COM NCR NPD-San Diego (619) 693-5593