chiark / gitweb /
webstump: do not alter the moderator's post disposition when it differs from the...
[modbot-mtm.git] / stump / etc / modack.received.INO
1 #!/bin/bash
2
3 set -e
4 set -o pipefail
5
6 TMPFILE=$TMP/reply.$$
7
8 cat > $TMPFILE
9
10 (
11   formail -rt -I "Reply-To: $NOACK" \
12         -I "X-Webstump-Event: ack" \
13         $MAILOUT_RECVACK_FORMAIL_ARGS \
14      < $TMPFILE
15   cat <<_EOB_
16 Hello,
17
18 This is an automatic acknowledgement that your message has been RECEIVED
19 by the robomoderation program for newsgroup $NEWSGROUP. 
20
21 This message has been queued and will be reviewed by the moderators
22 as necessary, and you will receive another email when a decision
23 about your article has been made.
24
25 If you do not want to receive automatic acknowledgments in the future,
26 simply reply to this message, QUOTING ITS TEXT IN FULL.
27
28 For details of the moderation arrangements see
29     %GROUPURL%
30
31 _EOB_
32
33   sanitise_and_quote_email \
34       < $TMPFILE
35
36 ) | sendmail -t -f $MUNGED_ADDRESS
37
38 rm $TMPFILE