interran@Shasta.ARPA (01/02/86)
I'd like to know if there's a way to update my .newsrc file such that all newsgroups are marked read. The rn manual page doesn't seem to help so that's why I'm asking the net. I only posted to net.unix because it seemed like the best place to do so. I'm not a regular reader of this group so I'd prefer reply by mail. Thanks. John Interrante/ interran@su-shasta.arpa/ ...decwrl!Glacier!Shasta!interran
interran@Shasta.ARPA (01/03/86)
There IS an easier way to use rn to mark all newsgroups as read. You predefine a macro, &&c cy, so that "c" marks a newsgroup as read. You make the macro a part of rn's initialization by defining the csh environment variable RNMACRO like this to point to a macro definitions file: % setenv RNMACRO $HOME/.rnmacros The .rnmacros file contains one macro definition per line like this: # this is the "c" macro c cy etc. Then to blast all newsgroups to oblivion you simply type % yes c | rn at the shell prompt. yes repeatedly outputs "c", and rn acts upon "c" as a command for each succeeding unread newsgroup. When all the newsgroups have been marked, rn loops endlessly at the end so you have to hit ^C to interrupt it. Then the next time you invoke rn all the newsgroups will have been read unless some news has come in already. This won't work if rn finds a new newsgroup and asks you if you want it to be added to your .newsrc file. It'd be a good idea to run rn first to get any such prompts out of the way, then "q" out of it and type yes c | rn. -- -- John Interrante/ interran@su-shasta.arpa/ decwrl!Glacier!Shasta!interran
ken@rochester.UUCP (Ipse dixit) (01/03/86)
On BSD systems, try: yes cy | rn and watch the fun. Of course, you could also do something more permanent: yes u | rn Ken -- UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken@rochester.arpa USnail: Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!
interran@Shasta.ARPA (01/03/86)
Oops - after I sent out that message telling you how to setenv RNMACRO and write a macros definition file .rnmacros, all just to define a macro as part of rn's initialization, ken@rochester mailed me a better way that DOESN'T require a macro. All you have to do is type % yes cy | rn (instead of yes c | rn, where "c" is a macro for cy) and watch the fun! The same precautions apply as before. -- -- John Interrante/ interran@su-shasta.arpa/ decwrl!Glacier!Shasta!interran