chiark / gitweb /
Bugfixes for permissions
[modbot-mtm.git] / stump / etc / modack.approved.INO
1 #!/bin/sh
2
3 (
4   cat $@ | formail -rt -I "Reply-To: $NOACK" \
5         -I "X-Webstump-Event: approve" \
6         -I 'Bcc: %OURUSER%+%ABBREV%-internal-log+mailout'
7   cat <<_EOB_
8 Hello,
9
10 $EXPLANATION
11
12 This is an automatic notification that your message has been APPROVED
13 for posting to moderated newsgroup $NEWSGROUP. 
14
15 For details of the moderation arrangements see
16     %GROUPURL%
17
18 If you do not want to receive automatic acknowledgments in the future,
19 simply reply to this message, QUOTING ITS TEXT IN FULL.
20
21 _EOB_
22
23   sed 's/^/> /; s/%OURUSER%+[-+/0-9a-z]*@%DOMAIN%/%OURUSER%+?@%DOMAIN%/' \
24      $@
25 ) | sendmail -t -f $MUNGED_ADDRESS