codetriage/codetriage — pull request #280 by rishijain (2014-11-04 17:49:26+00:00)
Title: Mail bug fix

Changes:

1. Updated rails to 4.1.7 and 10 failing tests. All because of change in the mail interface for parsing emails.

2. In app/model/user.rb,
to parse an email, the interface is changed to:
Mail::Parsers::AddressListsParser.new.parse(email)
After doing above change, 2 failing tests. Both case of trying to parse invalid emails,
ex: Mail::Parsers::AddressListsParser.new.parse('my invalid email')
This raises exception. Follow up on mail issues page(https://github.com/mikel/mail/issues/827)

3. In app/model/user.rb,
Rescued and returned false for valid email present whenever parsing exception from mail raised.