Merrill Cook writes:
mcook> Resend is letting things through with "Failed mail" and "Mail failed"
mcook> on the subject line. I've tried adding those words in the section
mcook> of resend that goes
mcook>> if (defined($opt_s) && ! defined($approved)
mcook>> && (/^subject:\s*subscribe\b/i ||
mcook>> /^subject:\s*unsubscribe\b/i ||
mcook>> /^subject:\s*help\b/i ||
mcook>> /^subject:\s*RCPT:\b/ ||
mcook>> /^subject:\s*Delivery Confirmation\b/ ||
mcook>> /^subject:\s*NON-DELIVERY of:/ ||
mcook>> /^subject:\s*Undeliverable Message\b/ ||
mcook>> /^subject:\s*Receipt Confirmation\b/ ||
mcook>> >>>> /^subject:\s*Failed/ ||
mcook>> >>>> /^subject:\s*Mail fail/ ||
mcook>> /^subject:\s*Returned mail\b/||
mcook>> /^subject:\s.*\bchange\b.*\baddress\b/ ||
mcook>> /^subject:\s*request\b.*\baddition\b/i)) {
mcook>> &bounce("Admin request");
mcook>> }
mcook> But resend is still letting the mail through.
The problem is the lack of an 'i' flag (case-insensitive) at the end of
some of the lines which means that 'subject' doesn't match. Make sure each
line has an 'i' after the '/' (as on the first three regexps) and you'll be
sorted.
Cheers...
--
#######################################################################
# Evan Welsh <evan@quadstone.co.uk> Quadstone Ltd #
# http://www.quadstone.co.uk/~evan/ +44 (0)131 220 4491 #
#######################################################################
References:
-
administrivia
From: Keith Reding From majordomo-users-owner Fri Feb 9 05:54:18 1996
|
|