Re: Get list of newsgroups?

Patrik Rådman <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
Patrik RÃ¥dman <[email protected]> wrote:
> Yes. just run
> 
> echo 'mail me@myhost' >/SNROOT/.outgoing/my.news.server:119/request-list
> 
> and the HELLO script will fetch the list of newsgroups and mail it to you.
> You can also put the command in "request-newgroups" instead, and you'll get
> a list of the new groups since your last list...
> 
> This used to be documented in INSTALL.*, but seems to have been deleted
> for some reason.

Ahem... I just tried it myself and noticed that it didn't work. Obviously
not a feature used by many. :) The patch below makes it work, except that
you'll get multiple lists if several groups are downloaded from the server...
I'll see what I can do about that later.


--- HELLO.in~	Sat May 19 19:54:57 2001
+++ HELLO.in	Thu Oct  4 19:51:21 2001
@@ -123,14 +123,14 @@
 cmd= ; getcmd () { [ -f $1 ] && cmd="`head -1 $1`" && [ "x$cmd" != x ]; }
 
 if getcmd request-list; then
-  nntp "LIST NEWSGROUPS"
+  nntp "LIST NEWSGROUPS" >$tmp
   [ x$CODE != x215 ] && nntp "LIST"
   [ x$CODE != x215 ] && end "Can't request list:$CODE $SAID"
   inform "$cmd" <$tmp || end "Unable to forward results"
   update request-list
 elif getcmd request-newgroups; then
   date=`cat .last-list 2>/dev/null`
-  nntp "NEWGROUPS ${date:-990101 000000}"
+  nntp "NEWGROUPS ${date:-990101 000000}" >$tmp
   [ x$CODE != x231 ] && end "Can't request newgroups:$CODE $SAID"
   inform "$cmd" || end "Unable to forward results"
   update request-newgroups


-- 
  Patrik Rådman  ·  patrik at iki dot fi  ·  http://www.iki.fi/patrik/
  "We're not in the past or the present anymore.  This is the future!"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.