🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Dan Jacobson Sun, 25 Feb 2001 17:52
have gnus read leafnode's spool directly?
#50828
Author: Dan Jacobson
Date: Sun, 25 Feb 2001 17:52
32 lines
2585 bytes
Sometimes /var/spool/news/leaf.node/groupinfo has a group article
count go to 0 after periods of unsubscription, which is frustrating
when you want to start reading again.  Sure I know about fetchnews
-n. I think it has to do with me using touch and rm in the
interesting.groups directory.

OK, so I see leafnode's files sitting there on my disk enticing me
to try to read them directly.  I am thinking, of the 4 links:
gnus<==>leafnode<==>server  [== instead of -- because two way, posting
and reading, 2x2=4] I'll just replace the gnus<--leafnode one with direct
disk access.

[Assume that I want to avoid leafnode's groupinfo file... how should I
make my own active file to simply reflect the state of all the news
files on my disk?  Should I make a shell script to do that?  This
should satisfy gnus nnspool interface.

So far I have got:
3732: nndir:/var/spool/news/tw/bbs/comp/linux
   *: nnspool:tw.bbs.comp.linux
   0: tw.bbs.comp.linux
The first seems to work but those long filenames tell me the second is
probably more correct.  The second is awaiting my version of the active
file.  The third is leafnode not acknowledging the many articles on the
disk... yes I know about fetchnews -f , but I don't want any
interference from outside servers in what could be a small clean
active file... handmade perhaps the best route?

[Of course the reason I'm using leafnode is unhappiness with gnus-agent.]
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.
Re: have gnus read leafnode's spool directly?
#50830
Author: Kai Großjohann
Date: Sun, 25 Feb 2001 20:00
19 lines
1904 bytes
Do not use nnspool to read the leafnode spool.
Do not use nnspool to read the leafnode spool.

Here's why.  When you read an article via NNTP, leafnode takes note
that you have read that article and that you're interested in that
group.  If you just read the file on disk (whether using cat or dd or
less or nnspool, doesn't matter), then leafnode doesn't know that you
did it and therefore doesn't know that you are interested in the
group.

Hence, the right select method for reading leafnode on the local host
is this:

(setq gnus-select-method '(nntp "localhost"))

kai
-- 
Be indiscrete.  Do it continuously.
Re: have gnus read leafnode's spool directly?
#50832
Author: Dan Jacobson
Date: Sun, 25 Feb 2001 21:09
36 lines
2639 bytes
>>>>> "Kai" == Kai Gro�johann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:

Kai> Do not use nnspool to read the leafnode spool.  Do not use
Kai> nnspool to read the leafnode spool.

Kai> Here's why.  When you read an article via NNTP, leafnode takes
Kai> note that you have read that article and that you're interested
Kai> in that group.  If you just read the file on disk (whether using
Kai> cat or dd or less or nnspool, doesn't matter), then leafnode
Kai> doesn't know that you did it and therefore doesn't know that you
Kai> are interested in the group.

Yeah, but, that's where I'm aiming... I've already turned off
leafnode's automatic desubscribing feature and intend to control what
it gets via rm and touch in ./interesing.groups/ ... that way I can
bypass the "0 article placeholder message" when those 1000s of
messages are indeed sitting right there on my disk... it's just that I
haven't read them in a while...  I must manage my own active file
though...

Kai> Hence, the right select method for reading leafnode on the local
Kai> host is this:

Kai> (setq gnus-select-method '(nntp "localhost"))

Wait a second...

>>>>> "phil" == phil hunt <philh@comuno.freeserve.co.uk> writes:

phil> I have just released Leafwa version 0.5.0.
phil> Leafwa is a web-based administration package for Leafnode

Hmm, this just might fix my wagon.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.
Re: have gnus read leafnode's spool directly?
#50845
Author: phil hunt
Date: Mon, 26 Feb 2001 13:27
18 lines
1587 bytes
On Mon, 26 Feb 2001 01:01:45 GMT, Stainless Steel Rat <ratinox@peorth.gweep.net> wrote:
>You cannot read leafnode's spool directly, regardless of the news reader
>you use. 

Cannot? You can if you've got root access.

I don't think it's a particularly good idea, mind.

> Leafnode access is NNTP only.


-- 
*****[ Phil Hunt ***** philh@comuno.freeserve.co.uk ]*****
"Mommy, make the nasty penguin go away." -- Jim Allchin, MS head 
of OS development, regarding open source software (paraphrased).
               

Re: have gnus read leafnode's spool directly?
#50857
Author: phil hunt
Date: Mon, 26 Feb 2001 22:03
16 lines
1674 bytes
On Mon, 26 Feb 2001 20:02:02 GMT, Stainless Steel Rat <ratinox@peorth.gweep.net> wrote:
>* philh@comuno.freeserve.co.uk (phil hunt)  on Mon, 26 Feb 2001
>| Cannot? You can if you've got root access.
>
>And what you get is broken.  Really.  Just don't do it.  Talk to it via
>NNTP.

I agree, reading the files directly is yucky.

-- 
*****[ Phil Hunt ***** philh@comuno.freeserve.co.uk ]*****
"Mommy, make the nasty penguin go away." -- Jim Allchin, MS head 
of OS development, regarding open source software (paraphrased).
               

Re: have gnus read leafnode's spool directly?
#50888
Author: sauve
Date: Wed, 28 Feb 2001 15:27
23 lines
1657 bytes
Dan Jacobson wrote:
> 
> Sometimes /var/spool/news/leaf.node/groupinfo has a group article
> count go to 0 after periods of unsubscription, which is frustrating

Yes and this is a bug.
* Running texpire will correct the bad(s) group article count.
* You can also correct the bug directly in the source code:
- suppress the two lines (in fetchnews.c):
	    g->first = 1;
	    g->last = 1;
- rebuild fetchnews. 

> when you want to start reading again.  Sure I know about fetchnews
> -n. I think it has to do with me using touch and rm in the
> interesting.groups directory.

Don't forget that the group and owner must be news:news.
To be sure type:
chown -c news:news /opt/news/interesting.groups/*

(...)
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