[Mimedefang] Using a db for subject lines to block

Cormack, Ken Ken.Cormack at roadway.com
Tue Jun 21 10:43:18 EDT 2005


> $lc_subject =~ s/\s/./g;

> which will squish multiple spaces down to a single dot, this might make
your
> source file smaller as well and would handle tabs as well.

> Jim


David was faster at the keyboard than you, Jim.  ;)  He suggested the
following yesterday...

>	$lc_subject = s/^\s+//;  # Trim leading whitespace
>	$lc_subject = s/\s+$//;  # Trim trailing whitespace
>	$lc_subject = s/\s+/./g; # Collapse whitespace into periods

Ken



More information about the MIMEDefang mailing list