#!/bin/sh
set -e
-#real=false
-real=true
-
export NNTPSERVER=nnrp.chiark.greenend.org.uk
export NNTPAUTH='md5cookie1way chiark'
output=`
set -e
exec 2>&1
- if $real; then
+ if [ x%DIVERTPOSTINGS% = x ]; then
inews -h -Q -R <$tf
else
(set -e
- echo "Newsgroups: %TESTGROUP%"
+ echo "Newsgroups: %DIVERTPOSTINGS%"
sed 's/^Newsgroups:/X-Would-Newsgroups:/' $tf) | inews -h
fi
`
if [ $rc = 0 ]
then
echo 'posted ok!'
- $HOME/live/xlog/bin/record posted %GROUP% <$tf
+ %BASEDIR%/xlog/bin/record posted %GROUP% <$tf
exit 0
fi