🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Dan Jacobson Mon, 25 Dec 2000 23:29
leafnode: I want to fetch articles from server A and post to server B
#49529
Author: Dan Jacobson
Date: Mon, 25 Dec 2000 23:29
21 lines
1971 bytes
In the leafnode manual it says:

       server = news02.bigprovider.com
              "server" is used by fetchnews (8)  to  select  what
              NNTP  server(s)  to  retrieve news from and to post
              your articles to. You can  specify  more  than  one
              news  server;  in  that  case,  the servers will be
              queried from the top down.  If  you  want  to  post
              articles, at least one of your servers should allow
              you to post.  In  the  example  above,  news02.big-
              provider.com is the news server.

I want to fetch articles from server A and post to server B.  It seems
to me if I put A on top it will do both on A, if I put B on top it
will do both on B, no?
--
http://www.geocities.com/jidanni e-mail: restore ".com." TEL+886-4-25854780 �n��
��


Re: leafnode: I want to fetch articles from server A and post to server B
#49561
Author: David E. Smith
Date: Wed, 27 Dec 2000 20:46
47 lines
2992 bytes
In our last shocking episode of news.software.nntp,
Dan Jacobson revealed a dark secret:
> In the leafnode manual it says:

[ snip: description of server configuration stuff from leafnode docs ]

[ note: Followups set only to news.software.nntp, since that seems to be 
the least inappropriate group. ]

> I want to fetch articles from server A and post to server B.  It seems
> to me if I put A on top it will do both on A, if I put B on top it
> will do both on B, no?

Close, but not quite. If you list two servers in /etc/leafnode/config, it
will try all operations on all servers (i.e. posting to all, and
downloading from all). This is great if you only read news; it'll get you
a slightly better completion rate, and leafnode is smart enough to not
download duplicates (usually).

Posting, though, is a bit more ugly. If any of these servers overwrite the
Message-ID: header, you'll likely end up with duplicate postings
propagating through the 'net. The NNTP servers provided by most ISPs tend
to do this; most of the separate, pay-to-play servers (supernews,
usenetserver, etc.) will honor the Message-ID: headers created by
leafnode.

So far as I know, leafnode doesn't currently support separate servers for 
separate operations (i.e. what you described, or only downloading certain 
groups from certain servers). 

To test the Message-ID: bit, drop a few love letters in misc.test and wait 
for the auto-reply 'bots to get back to you (which usually takes about ten 
minutes). Good luck!

...dave




---- David E. Smith, POB 515045, St. Louis MO 63151
http://www.technopagan.org/    dave@technopagan.org

"Where's the Ka-Boom? There was supposed to be an
 Earth-shattering Ka-Boom!" -- Marvin The Martian


Re: leafnode: I want to fetch articles from server A and post to server B
#49570
Author: Mark Brown
Date: Thu, 28 Dec 2000 14:09
17 lines
1955 bytes
"David E. Smith" <dave@technopagan.org> writes:

> So far as I know, leafnode doesn't currently support separate servers for 
> separate operations (i.e. what you described, or only downloading certain 
> groups from certain servers). 

It would be possible to get at least the "post to this server"
behaviour by running fetchnews with -P (post only) and -l (first
server only) before running the main download.  Anything more would
require either modifying the code or moving around configuration
files.

-- 
Mark Brown  mailto:broonie@tardis.ed.ac.uk   (Trying to avoid grumpiness)
            http://www.tardis.ed.ac.uk/~broonie/
EUFS        http://www.eusa.ed.ac.uk/societies/filmsoc/
Re: leafnode: I want to fetch articles from server A and post to server B
#49574
Author: Dan Jacobson
Date: Thu, 28 Dec 2000 21:20
28 lines
2614 bytes
"David E. Smith" <dave@technopagan.org> writes:

> [ note: Followups set only to news.software.nntp, since that seems to be 
> the least inappropriate group. ]

oh no you don't. Apparently the GNUS pros rely on leafnode more than
one would expect, with the gnus-unplugged mode not as um, up to par yet.
Followups: let's do it my way.

> > I want to fetch articles from server A and post to server B.  It seems
> > to me if I put A on top it will do both on A, if I put B on top it
> > will do both on B, no?
> 
> Close, but not quite. If you list two servers in /etc/leafnode/config, it
> will try all operations on all servers (i.e. posting to all, and
> downloading from all). This is great if you only read news; it'll get you
> a slightly better completion rate, and leafnode is smart enough to not
> download duplicates (usually).

Well, what an inflexible program.  OK, I'm gonna try this workaround:
make 2 different config files, one for posting, another for fetching,
copy the posting one to /etc/leafnode/config, do fetchnews -P [thank
god they give this option], then copy the second file into the same
spot, then do plain fetchnews. I hope it works.
[could symlink instead of copy]
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. �n����
Re: leafnode: I want to fetch articles from server A and post to server B
#49580
Author: Dan Jacobson
Date: Thu, 28 Dec 2000 23:31
19 lines
2110 bytes
> > > I want to fetch articles from server A and post to server B.  It seems
> > > to me if I put A on top it will do both on A, if I put B on top it
> > > will do both on B, no?
> > Close, but not quite. If you list two servers in /etc/leafnode/config, it
> > will try all operations on all servers (i.e. posting to all, and
> > downloading from all). This is great if you only read news; it'll get you
> > a slightly better completion rate, and leafnode is smart enough to not
> > download duplicates (usually).
another want is today i connect to ISP 1, tommorrow ISP 2, next week to ISP 1.
Therefore, fetchnews needs some more command switches, for now I must write a
script
to move today's ISP to the top of the config file and then use the switch for
use only first server...
--
http://www.geocities.com/jidanni e-mail: restore ".com." TEL+886-4-25854780 �n��
��


Re: leafnode: I want to fetch articles from server A and post to server B
#49591
Author: David E. Smith
Date: Fri, 29 Dec 2000 21:23
29 lines
2090 bytes
Last time, on the hit series news.software.nntp,
Mark Brown shocked the world by saying:

> It would be possible to get at least the "post to this server"
> behaviour by running fetchnews with -P (post only) and -l (first
> server only) before running the main download.  Anything more would
> require either modifying the code or moving around configuration
> files.

Or just writing a quickie shell/perl/whatever script to juggle 
configuration files. Depending on how clever fetchnews is, a wrapper for 
it may also be necessary (a lockfile-sorta-thing, to ensure you don't 
start posting while the "read-from-server-A" config file is in place).

Shouldn't be too hard to whip one out...

...dave





---- David E. Smith, POB 515045, St. Louis MO 63151
http://www.technopagan.org/    dave@technopagan.org
http://www.bureau42.com/       http://metadave.net/

"Retail gets weirder every year."
  -- Too Much Espresso Guy
Re: leafnode: I want to fetch articles from server A and post to server B
#49593
Author: David E. Smith
Date: Fri, 29 Dec 2000 21:29
33 lines
2405 bytes
In our last shocking episode of news.software.nntp,
Dan Jacobson revealed a dark secret:

> Followups: let's do it my way.

Heh.

> Well, what an inflexible program.  OK, I'm gonna try this workaround:
> make 2 different config files, one for posting, another for fetching,
> copy the posting one to /etc/leafnode/config, do fetchnews -P [thank
> god they give this option], then copy the second file into the same
> spot, then do plain fetchnews. I hope it works.
> [could symlink instead of copy]

Back on news.software.nntp, I just suggested something similar. A shell 
script to wrap all that up shouldn't be difficult at all. (A wrapper for 
fetchmail may also be necessary; I haven't looked at that code too 
closely, to see whether it's smart enough to avoid silliness like running 
multiple instances at once, possibly with the "wrong" config file in 
place.)

...dave




---- David E. Smith, POB 515045, St. Louis MO 63151
http://www.technopagan.org/    dave@technopagan.org
http://www.bureau42.com/       http://metadave.net/

"Retail gets weirder every year."
  -- Too Much Espresso Guy
Re: leafnode: I want to fetch articles from server A and post to server B
#49595
Author: Mark Brown
Date: Sat, 30 Dec 2000 12:29
16 lines
2114 bytes
"David E. Smith" <dave@technopagan.org> writes:

> Or just writing a quickie shell/perl/whatever script to juggle 
> configuration files. Depending on how clever fetchnews is, a wrapper for 
> it may also be necessary (a lockfile-sorta-thing, to ensure you don't 
> start posting while the "read-from-server-A" config file is in place).

It's also pretty simple to implement a configuration option to
restrict the set of groups that get downloaded from each server and do
it that way.

-- 
Mark Brown  mailto:broonie@tardis.ed.ac.uk   (Trying to avoid grumpiness)
            http://www.tardis.ed.ac.uk/~broonie/
EUFS        http://www.eusa.ed.ac.uk/societies/filmsoc/
Re: leafnode: fetch just one or two groups from server B
#49638
Author: Dan Jacobson
Date: Wed, 03 Jan 2001 13:17
23 lines
2260 bytes
> "David E. Smith" <dave@technopagan.org> writes:
> 
> > So far as I know, leafnode doesn't currently support separate servers for 
> > separate operations (i.e. what you described, or only downloading certain 
> > groups from certain servers). 

Ok, here's a challenge for the next leafnode (fetchnews): let's say I
like to get my usual 134 groups from server.thats.just.next.door, but
there's one or two groups on server.thats.real.far.away that I'd also
like to get.  Unfortunately leafnode insists on going thru each of my
134 groups again when it connects to server.thats.real.far.away [yes,
that server stocks all groups.]

Not only would one need to write a wrapper to move around the contents
of /etc/leafnode/config, but also the contents of the interesting
groups directory, no?

leafnode (fetchnews) also is extremely rigid in not allowing runtime
specification of its configuration file, non use of environment
variables, sparseness of command line switches, etc.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. �n����
Re: leafnode: fetch just one or two groups from server B
#49677
Author: John Hawkes-Reed
Date: Thu, 04 Jan 2001 21:43
19 lines
1697 bytes
jidanni@kimo.FiXcomTHiS.tw (Dan Jacobson) wrote in
<m2n1d8ixm0.fsf_-_@dan.jacobson.tw>: 

>Ok, here's a challenge for the next leafnode (fetchnews): let's say I

[ ... ]

Curiously enough, I hacked on the version of Leafnode I use @ home to allow 
the specification of read-only servers. (Because it broke U2 soundness 
otherwise)

You're welcome to the (trivial) diffs, if I can find them.

But <whoever> is right, the leafnode config needs a deal of fiddling, which 
I'll get around to one day unless someone beats me to it... 

-- 
JH-R
Re: leafnode: fetch just one or two groups from server B
#49714
Author: Dan Jacobson
Date: Mon, 08 Jan 2001 12:43
12 lines
1891 bytes
>>>>> "John" == John Hawkes-Reed <hirez@bratcave.org> writes:

John> Curiously enough, I hacked on the version of Leafnode I use @
John> home to allow the specification of read-only servers. (Because
John> it broke U2 soundness otherwise)

readonly servers? I do this by having two leafnode/config files, move
the one for posting into place and then do fetchnews -P, then move the
one for fetching into place, and do fetchnews. non elegant.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com. �n����
Re: leafnode: fetch just one or two groups from server B
#49758
Author: John Hawkes-Reed
Date: Tue, 09 Jan 2001 23:38
26 lines
2371 bytes
jidanni@kimo.FiXcomTHiS.tw (Dan Jacobson) wrote in 
<m2hf3axlhv.fsf@dan.jacobson.tw>:

>>>>>> "John" == John Hawkes-Reed <hirez@bratcave.org> writes:
>
>John> Curiously enough, I hacked on the version of Leafnode I use @
>John> home to allow the specification of read-only servers. (Because
>John> it broke U2 soundness otherwise)
>
>readonly servers? I do this by having two leafnode/config files, move
>the one for posting into place and then do fetchnews -P, then move the
>one for fetching into place, and do fetchnews. non elegant.

Each to their own, I suppose.

The leafnode config alleges that posts are only sent to the first server in 
the list. This is a lie. Since I gather news from two servers (the one I 
care about and 'admin' - though some might consider I just poke it 
disconsolately with a stick from time to time - carries U2, the other 
carries some ISP-specific groups), it would post U2 articles to the second, 
unsound, server given half a chance. This was behaviour I didn't 
particularly want to encourage.

-- 
J H-R
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads