
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
=Email::Valid
Email::Valid is a simple class to check the validity of email addresses, copied from the perl Email::Valid module.
==Quick Start
if Email::Valid.address(email_address) # do something end
==Usage
Call the class method:
if Email::Valid.address(email_address) # do something end
or the instance methods:
email = Email::Valid.new(:check_domain => true, :check_rfc822 => true)
if email.valid(email_address) # do something else raise "Invalid Email: #{email.errors.join ', '}" end
Possible arguments to Email::Valid.new
:check_domain - checks the mx record for the domain, default true
:check_rfc822 - checks the address against the rfc822 pattern, default true
Other instance methods:
valid_domain(email) - returns true if it finds a valid mx record, false otherwise
valid_rfc822(email) - returns true if it matches the rfc822 pattern, false otherwise
==Credit
This is an incomplete adaptation of the perl Email::Valid module.
http://search.cpan.org/~rjbs/Email-Valid-0.184/lib/Email/Valid.pm
FAQs
Unknown package
We found that email_valid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.