Re: Newsfeeds File - Now ifnews? (fwd)

Marco d'Itri (md@linux.it)
Sat, 24 May 1997 13:48:24 +0200

On May 23, Chris Molnar <cmolnar@newn.com> wrote:

>Here is where NOTHING happens except the out.going directoy entries
>vanish.
You have to run a script like this one:

#!/bin/sh
## script to send out fido batches trought ifmail

. /usr/lib/news/innshellvars

if [ ! -f $SERVERPID ]; then exit ;fi

##$NEWSBIN/ctlinnd -s -t30 flush ''

SITE=f206.n332
echo
if [ -s $BATCH/$SITE ]; then
$NEWSBIN/batcher -v -p\
"/usr/local/lib/ifmail/ifnews -x0 %s"\
$SITE $BATCH/$SITE
$NEWSBIN/ctlinnd -s -t30 flush $SITE
else
echo "$0 [$$]: no articles for $SITE"
fi

ctlinnd must be run *before* batcher if you use buffering (the B4096/1024
thing). I don't, and my newsfeeds(5) entry is:

f206.n332\
:!*,fido.*\
:Tf,Wfb:

Note that ifnews must be executable by uid (or gid) news and suid ifmail:
-rwsr-xr-- 2 ifmail news 72648 May 4 18:50 ifnews*

-- 
ciao,
Marco