Jim Gronowski wrote:
> Is it possible to restrict messages based on content so I can prevent 
> any email containing any 16 digit number (such as a credit card number) 
> from being transmitted?  If so, can I add a custom error message stating 
> why?
>  
> Thanks,
>  
> Jim
>  

Keep in mind, not all credit cards have 16 digits. Visa can have 13 or 
16. And AMEX, Diners Club, enRoute, and JCB have 15. You can also use 
the LUHN formula to determine the it's actually a credit card or not.

http://en.wikipedia.org/wiki/Luhn_formula

Not sure how you would implement that into a regex though.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to