Thread View: news.software.nntp
1 messages
1 total messages
Started by Sean Purdy
Mon, 07 Jun 1999 00:00
NoCeM-on-spool patch for INN2.2 and CNFS
Author: Sean Purdy
Date: Mon, 07 Jun 1999 00:00
Date: Mon, 07 Jun 1999 00:00
91 lines
3326 bytes
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
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