chiark / gitweb /
webstump: do not alter the moderator's post disposition when it differs from the...
[modbot-mtm.git] / stump / etc / modack.approved.INO
1 #!/bin/bash
2
3 set -e
4 set -o pipefail
5
6 if [ $# != 1 ]; then
7         echo >&2 "wrong # args to $0: $*"
8         exit 1
9 fi
10 input="$1"
11
12 (
13   formail <"$input" -rt -I "Reply-To: $NOACK"   \
14                 -I "X-Webstump-Event: approve"  \
15                 $MAILOUT_ACCEPTACK_FORMAIL_ARGS
16   cat <<_EOB_
17 Hello,
18
19 $EXPLANATION
20
21 This is an automatic notification that your message has been APPROVED
22 for posting to moderated newsgroup $NEWSGROUP. 
23
24 For details of the moderation arrangements see
25     %GROUPURL%
26
27 If you do not want to receive automatic acknowledgments in the future,
28 simply reply to this message, QUOTING ITS TEXT IN FULL.
29
30 _EOB_
31
32   sanitise_and_quote_email \
33      $@
34
35 ) | sendmail -t -f $MUNGED_ADDRESS