Provide a Validator Service
From the commit:
OpenSRF Validator Service
Add a new Validator service, and EmailAddress validators.
The service runs a chain of one or more validators, each one being fed the normalized output of the previous one.
The return from each validator should be a hash of valid (0 or 1), the new normalized output (the untouched input if invalid or nothing needed to be changed), and if invalid an error string. Optionally, a validator can also include an "additionals" hash of extra information to be included in the final response.
The complete list of validators included is:
The base validator. Always returns valid.
Always returns invalid for testing purposes.
Does a very basic regular expression check on email addresses.
Uses Net::DNS to look up the domain on an email address