X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?a=blobdiff_plain;f=stump%2Fetc%2Fmodenv.INO;h=e403b4237e4eff01b230b48343de2d149a22e1f1;hb=1f3068176f19e911fbe7eb9a852ca91961d4b751;hp=eebf1d508d3ee0199321f1db48c1153ab37e5302;hpb=f930fe9336ba1850bf6d54511f3045cf612d242f;p=modbot-mtm.git diff --git a/stump/etc/modenv.INO b/stump/etc/modenv.INO index eebf1d5..e403b42 100755 --- a/stump/etc/modenv.INO +++ b/stump/etc/modenv.INO @@ -10,6 +10,8 @@ # to real moderation scripts. Follow the instructions. # +set -e + ####################################################################### # this is the root directory where moderation software & config # resides. Make sure that sendmail is in the PATH. @@ -49,16 +51,6 @@ MAILOUT_REJECT_FORMAIL_ARGS=' -I Bcc:%OURUSER%+%ABBREV%-internal-reject-copy@%DOMAIN% ' -sanitise_and_quote_email () { - perl -pe ' - s/ %OURUSER% \+ [-+/0-9a-z]* \@ - (\Q %DOMAIN% | %SLIMYDOMAIN \E) \b - /%OURUSER%+?\@$1/igx - unless m/^$/..0; - s/^/> /; - ' "$@" -} - ####################################################################### # STUMP enforces limitations on the maximum number of newsgroups # used in Newsgroups: header line. The default value is 5. I