🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Ben C. O. Grimm Sat, 03 Jun 2000 00:00
NoCeM-on-Spool and INN/CNFS
#46778
Author: Ben C. O. Grimm
Date: Sat, 03 Jun 2000 00:00
35 lines
1791 bytes
I'm drawing a blank here. 

Does NoCeM-on-Spool (v0.92.3e) work with INN 2.2.2/CNFS? It's
working with 1.7.2/tradspool (of course), but is there a way to
kick it into submission using CNFS? PGP is working fine. 

I have this in newsfeeds:

NOCEM!:!*,alt.nocem.misc,news.lists.filters:Tc,Wf,S100000:\
 /usr/news/ncmspool/chan2prog \
 /usr/news/ncmspool/ncmspool | logger -p news.notice -t ncmspool

Still I end up with noting more than

Bad sig in
@03014F4E450000000000000882CA00000001010083128B0117010000@:

in news.notice and

egrep:
@030254574F0000000000000EC9DA00000001010033158B0119010000@: No
such file or directory
grep:
@030254574F0000000000000EC9DA00000001010033158B0119010000@: No
such file or directory

in errlog.

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: NoCeM-on-Spool and INN/CNFS
#46780
Author: Ben C. O. Grimm
Date: Sat, 03 Jun 2000 00:00
28 lines
1713 bytes
On 03 Jun 2000 02:38:59 +0100, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:

> I think the current version of c-nocem understands storageapi, you
> probably want to try that instead.
>   http://sites.inka.de/sites/bigred/sw/c-nocem.html

So it seems. During configure, this shows up

checking for storageapi in innconf... yes

but it fails to compile (FreeBSD 4.0-REL/INN 2.2.2 6/2)

/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x79): undefined reference to `main'
*** Error code 1

I'll have a look at it later.

Thx.

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: NoCeM-on-Spool and INN/CNFS
#46793
Author: Andrew Gierth
Date: Sat, 03 Jun 2000 00:00
19 lines
1439 bytes
>>>>> "Ben" == Ben C O Grimm <Ben.Grimm@wirehub.net> writes:

 Ben> I'm drawing a blank here. 
 Ben> Does NoCeM-on-Spool (v0.92.3e) work with INN 2.2.2/CNFS?

No. That code doesn't understand anything except traditional spool.

I think the current version of c-nocem understands storageapi, you
probably want to try that instead.
  http://sites.inka.de/sites/bigred/sw/c-nocem.html

If you prefer to fix ncmspool, what you have to do is to arrange to
use the 'sm' program to access the article rather than assuming that
the article token is a filename.

-- 
Andrew.

Re: NoCeM-on-Spool and INN/CNFS
#46799
Author: Ben C. O. Grimm
Date: Sun, 04 Jun 2000 00:00
28 lines
1811 bytes
On 04 Jun 2000 02:10:44 +0100, Andrew Gierth <andrew@erlenstar.demon.co.uk>
wrote:

> >>>>> "Ben" == Ben C O Grimm <Ben.Grimm@wirehub.net> writes:
>  >> NFROM=`echo ${TMPDIR}/notice.$$`
> This is an unnecessary fork. Why not:
> NFROM="${TMPDIR}/notice.$$"

There's another unnecessary step, of course, even though it only involves
renaming a var. So here's the final diff:

diff ncmspool.orig ncmspool

111c111,112
<   NFROM=$FD
---
>   ${PATHBIN}/sm $FD > ${TMPDIR}/notice.$$
>   NFROM="${TMPDIR}/notice.$$"
139a141
>   rm -f ${TMPDIR}/notice.$$

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: NoCeM-on-Spool and INN/CNFS
#46801
Author: Ben C. O. Grimm
Date: Sun, 04 Jun 2000 00:00
19 lines
1570 bytes
On 04 Jun 2000 02:10:44 +0100, Andrew Gierth <andrew@erlenstar.demon.co.uk>
wrote:

> >>>>> "Ben" == Ben C O Grimm <Ben.Grimm@wirehub.net> writes:
 
>  >> NFROM=`echo ${TMPDIR}/notice.$$`
 
> This is an unnecessary fork. Why not:
> NFROM="${TMPDIR}/notice.$$"

Yes, you're right. Next time, I'll post a slow fix :)

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: NoCeM-on-Spool and INN/CNFS
#46802
Author: Ben C. O. Grimm
Date: Sun, 04 Jun 2000 00:00
50 lines
2554 bytes
On 03 Jun 2000 02:38:59 +0100, Andrew Gierth <andrew@erlenstar.demon.co.uk>
wrote:

> >>>>> "Ben" == Ben C O Grimm <Ben.Grimm@wirehub.net> writes:
 
>  Ben> I'm drawing a blank here. 
>  Ben> Does NoCeM-on-Spool (v0.92.3e) work with INN 2.2.2/CNFS?

> If you prefer to fix ncmspool, what you have to do is to arrange to
> use the 'sm' program to access the article rather than assuming that
> the article token is a filename.

This was easier than I expected. For those who want to use ncmspool v0.92.3e
with CNFS .. here are the diffs (this is a quick fix, mind you):

diff ncmspool.orig ncmspool      

111c111,113
<   NFROM=$FD
---
>   NFROM1=$FD
>   ${PATHBIN}/sm $NFROM1 > ${TMPDIR}/notice.$$
>   NFROM=`echo ${TMPDIR}/notice.$$`
139a142
>   rm -f ${TMPDIR}/notice.$$

As you can see, it's just a question of invoking sm to fetch the article
represented by the token ($FD) and write it to a tempfile, and then using the
path to the tempfile as if it were a path to an article in a tradspool
environment.

news.notice:

ncmspool: NoCeM on spool v0.92.3e 
ncmspool: Good sig in /usr/local/news/tmp/notice.92913:From:
clewis@ferret.ocunix.on.ca (Chris Lewis) 
ncmspool: ------------ 
ncmspool: 1 total ids found 
ncmspool: 1 unique 

If you like to preserve the notices for later reference, just skip the last
diff (but do clean up manually once in a while :)

-- 
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -

Re: NoCeM-on-Spool and INN/CNFS
#46803
Author: Andrew Gierth
Date: Sun, 04 Jun 2000 00:00
12 lines
1141 bytes
>>>>> "Ben" == Ben C O Grimm <Ben.Grimm@wirehub.net> writes:

 >> NFROM=`echo ${TMPDIR}/notice.$$`

This is an unnecessary fork. Why not:

NFROM="${TMPDIR}/notice.$$"

-- 
Andrew.

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