🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37850

NoCeM-on-spool patch for INN2.2 and CNFS

#37850
From: Sean Purdy
Date: Mon, 07 Jun 1999 00:00
91 lines
3326 bytes
I wanted to use Howard Goldstein's NoCeM-on-spool v0.92.3e
with CNFS and an inn2.2 channel feed.
(available from ftp://ftp.mpcs.com/pub/newsadmin/nocem/ )

However, I found out that it won't work in this context, because
the feed is spouting tokens of the form
@030142303500000000000031BCC900000004FF000000000000000000@
and the ncmspool script is expecting filenames along the lines of
/var/spool/news/articles/alt/whatever/1234

The channel feed is similar to 
NOCEM!:!*,news.lists.filters:Tc,Wf,S100000:/usr/local/news/ncmspool/chan2prog \
  /usr/local/news/ncmspool/ncmspool | /usr/bin/logger -p news.notice -t ncmspool


So here's a quick patch to the ncmspool shell script to allow ncmspool to
read the NoCEM article using the storage manager command line interface "sm"
instead of trying to open the article from a standard feed.


Disclaimer:
This is not generic.  It has not been tested for any other case
apart from the one described above.  It probably breaks if you
try and use it with the standard news spool configuration.
It probably breaks if you use a file feed rather than a channel feed.
It works for me.  Use at your own risk.


However, if you do need it, here it is.
             

Sean Purdy
CIX Ltd

---- cut here ----
11,21d10
< #
< #############
< #
< #
< #  7 jun 99 - rejig for cnfs feed - i.e. expect
< #             @030142303500000000000031BCC900000004FF000000000000000000@
< #             instead of /var/spool/news/articles/a/b/c/123
< #
< #           - Sean Purdy, CIX Ltd.  sean@cix.co.uk
< #
< #############
55,58d43
< # Where sm lives
< #
< SM="/usr/local/news/bin/sm"
< 
131,138d115
< #for notice in ${NFROM}; do
< #  ( 
< #  ${EGREP} -i "^Subject:.*@@" $notice > /dev/null &&
< #     ${SED} -e  '/^-----BEGIN PGP SIGNATURE-----/,${
< #/^-----BEGIN PGP SIGNED MESSAGE-----/d
< #}
< #'    $notice | ${PGPCMD} > ${TMPDIR}/ncm.staging 2>&1
< 
140,141c117,119
<   (
<   ${SM} -q  ${NFROM} | ${SED} -e '/^-----BEGIN PGP SIGNATURE-----/,${
---
>   ( 
>   ${EGREP} -i "^Subject:.*@@" $notice > /dev/null &&
>      ${SED} -e  '/^-----BEGIN PGP SIGNATURE-----/,${
144,146c122
< ' | ${PGPCMD} > ${TMPDIR}/ncm.staging 2>&1
< 
< 
---
> '    $notice | ${PGPCMD} > ${TMPDIR}/ncm.staging 2>&1
148c124
<    [ $VERBOSE = 1 ] && echo Good sig in $notice:`grep '^Issuer:' $TMPDIR/ncm.staging`
---
>    [ $VERBOSE = 1 ] && echo Good sig in $notice:`grep '^From:' $notice`
160c136
<     [ $VERBOSE = 1 ] && echo " Bad sig in" $notice:`grep '^Issuer:' $TMPDIR/ncm.staging`
---
>     [ $VERBOSE = 1 ] && echo " Bad sig in" $notice:`grep '^From:' $notice`
---- cut here ----



Sean Purdy
CIX Ltd

Technical Details
Message-ID: <7jgg3t$q3m$1@plutonium.compulink.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <7jgg3t$q3m$1@plutonium.compulink.co.uk>
Subject: NoCeM-on-spool patch for INN2.2 and CNFS
Date: Mon, 07 Jun 1999 00:00:00 +0000
From: Sean Purdy <news@sean.compulink.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 486644730
Sender: sean@cix.co.uk
Organization: CIX - Compulink Information eXchange
Keywords: nocem,cnfs,inn,ncmspool
Newsgroups: news.software.nntp,alt.nocem.misc