[Mimedefang] Using a db for subject lines to block

Cormack, Ken Ken.Cormack at roadway.com
Tue Jun 21 13:51:51 EDT 2005


> I saw that after I replied! His does a better job at sanitation than mine
as I
> did not thought of leading or trailing whitespace. :)
> 
> Jim

> On Tue, 21 Jun 2005 10:43:18 -0400, Cormack, Ken wrote
> > 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

And be careful of David's typing, too.... He used "=" in the above, when he
should have used "=~"  ::wink::

Ken



More information about the MIMEDefang mailing list