#!/bin/sh
+set -e
+
if [ "x$@" = "x" ]; then
cat >> $MNG_ROOT/data/noack.list
#!/bin/sh
+set -e
+
if [ "x$@" = "x" ]; then
cat >> $MNG_ROOT/data/good.guys.list
-#!/bin/sh
+#!/bin/bash
+
+set -e
+set -o pipefail
NEWSBIN=/var/lib/newsbin; export NEWSBIN
shift
# reply message, signs it with PGP and sends back to the author.
#
+set -e
+
# echo $0 invoked with arguments $@ 1>&2
MESSAGE=$TMP/rejected.$$
-#!/bin/sh
+#!/bin/bash
# posts a nice report
#
# $Id: report.sh,v 1.2 2007/05/03 23:47:49 rram Exp $
# Modified to work with GPG
+set -e
+set -o pipefail
+
TODAY="`date`"
DATE6="`date +%y%m%d`"
-#!/bin/sh
+#!/bin/bash
+
+set -e
+set -o pipefail
+
(
formail -r -I "Subject: $NEWSGROUP Approval PGP Key" \
-I "Reply-To: devnull@algebra.com" \
-#!/bin/sh
+#!/bin/bash
+
+set -e
# $Id: stump-pgp,v 1.2 2007/05/03 23:47:55 rram Exp $
# Modified to work with GPG
-#!/bin/sh
+#!/bin/bash
+
+set -e
cd $MNG_ROOT/tmp
-#!/bin/sh
+#!/bin/bash
+
+set -e
+set -o pipefail
# $Id: verifySignature,v 1.2 2007/05/03 23:50:21 rram Exp $
# Modified to work with GPG
-#!/bin/sh
+#!/bin/bash
+
+set -e
+set -o pipefail
(
cat $@ | formail -rt -I "Reply-To: $NOACK" \
-#!/bin/sh
+#!/bin/bash
+
+set -e
+set -o pipefail
TMPFILE=$TMP/reply.$$
-#!/bin/sh
+#!/bin/bash
#
# This script sends an email to a group of people listed in
# env var RECIPIENTS (we create this var here from etc/moderators)
# human moderators of your newsgroup.
#
+set -e
+set -o pipefail
+
FILTER="NO_$2_LIST";
RECIPIENTS="`cat $MNG_ROOT/etc/moderators \
-#!/bin/sh
+#!/bin/bash
#
# use this script instead of standard rnews or inews, if you want better
# propagation of your articles.
#
+set -e
+
TEMPFILE=$TMP/posting.$$
cat $@ > $TEMPFILE
-#!/bin/sh
+#!/bin/bash
+
+set -e
# This file creates a little .posted_log file in your home
# directory. Runs if activeated by crontab. See your crontab