#!/bin/sh ( cat $@ | formail -rt -I "Reply-To: $NOACK" \ -I "X-Webstump-Event: approve" \ -I 'Bcc: %OURUSER%+%ABBREV%-internal-log+mailout' cat <<_EOB_ Hello, $EXPLANATION This is an automatic notification that your message has been APPROVED for posting to moderated newsgroup $NEWSGROUP. For details of the moderation arrangements see %GROUPURL% If you do not want to receive automatic acknowledgments in the future, simply reply to this message, QUOTING ITS TEXT IN FULL. _EOB_ sed 's/^/> /; s/%OURUSER%+[-+/0-9a-z]*@%DOMAIN%/%OURUSER%+?@%DOMAIN%/' \ $@ ) | sendmail -t -f $MUNGED_ADDRESS