chiark / gitweb /
Bugfixes for permissions
[modbot-mtm.git] / stump / etc / modack.received.INO
1 #!/bin/sh
2
3 TMPFILE=$TMP/reply.$$
4
5 cat > $TMPFILE
6
7 (
8   formail -rt -I "Reply-To: $NOACK" \
9         -I "X-Webstump-Event: ack" \
10         -I 'Bcc: %OURUSER%+%ABBREV%-internal-log+mailout' \
11      < $TMPFILE
12   cat <<_EOB_
13 Hello,
14
15 This is an automatic acknowledgement that your message has been RECEIVED
16 by the robomoderation program for newsgroup $NEWSGROUP. 
17
18 This message has been queued and will be reviewed by the moderators
19 as necessary, and you will receive another email when a decision
20 about your article has been made.
21
22 If you do not want to receive automatic acknowledgments in the future,
23 simply reply to this message, QUOTING ITS TEXT IN FULL.
24
25 For details of the moderation arrangements see
26     %GROUPURL%
27
28 _EOB_
29
30   sed 's/^/> /; s/%OURUSER%+[-+/0-9a-z]*@%DOMAIN%/%OURUSER%+?@%DOMAIN%/' \
31       < $TMPFILE
32 ) | sendmail -t -f $MUNGED_ADDRESS
33
34 rm $TMPFILE