On Wednesday, July 16, 2003 3:52 AM, I wrote:
> .. but, to keep the regex semi-simple, it does allow for names as ' or .
or
> even whitespace.

I have improved the regex myself, As I couldnt stand
whitespace/comma/tick/dash/dot being valid.

> header JK_SENDER1       Sender =~
/^"?[a-z0-9\s\.\',-]+"?\s+\<[EMAIL PROTECTED]>?\s*$/i

header JK_SENDER1    Sender =~
/^"?[a-z](\s*[a-z0-9\.\',-]+)+"?\s+\<[EMAIL PROTECTED]>?\s*$/i

..so at least now the name has to have at least one letter and one other
thing in it, and a space must be followed by something



-------------------------------------------------------------------
Jeremy Kister
www.jeremykister.com
PGP: http://www.jeremykister.com/jeremy/public_key.asc
-------------------------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to