I want to create a test that returns either true or false for email handling.
For now, if the email address starts with r+ then it's true otherwise it's false. This will help our server ignore a lot of the SPAM we are getting hit with.
Examples:
r+kldslkadslkadslk@site.com .. true
r+123123312@site.com .. true
vigraaaa@site.com .. FALSE
What's the most efficient way to handle this with Rails/ruby/regex?
Thanks
GOAL
Is a one liner in rails/ruby with:
ABORT if XXXXX == 0