[Mimedefang] Perl Expression Question

David F. Skoll dfs at roaringpenguin.com
Sun Dec 8 12:06:01 EST 2002


On Sun, 8 Dec 2002, Jeff Grossman wrote:

> I have a filter which rejects foreign charsets.  But, there are some
> mailing lists which I do not wish to reject.  Would the following be
> correct for allowing anything from the *-admin at proftpd.org and
> *@lists.sourceforge.net lists?

> if ($Sender =~ /^<*\-admin\@proftpd.org>?$/ or
>         $Sender =~ /^<*\@lists.sourgeforge.net>?$/) {
>         } else {

No, that won't work.  This will:

if ($Sender =~ /-admin\@proftpd\.org>?$/i or
    $Sender =~ /\@lists\.sourgeforge\.net>?$/i) {
	# Allow
} else {
	# Reject foreign charsets
}

--
David.



More information about the MIMEDefang mailing list