Mail::AddressList can not parse |my test email|
- Dominant language
- Ruby
- Stars
- 3.7k
- Forks
- 934
- PR merge metrics
- No merged PRs in 30d
Description
I am on ruby 2.0.0p451
Not able to parse and return false when passed an invalid email address.
This is a test case I added in spec/mail/parsers/address_lists_parser_spec.rb and ran
it "should parse an address" do
text = 'ddfafo asd'
a = Mail::Parsers::AddressListsParser.new
expect(a.parse(text)).not_to be_nil
end
And I get this error:
Mail::Field::ParseError:
Mail::AddressList can not parse |my test email|
Contributor guide
Research direction
Start with spec/mail/parsers/address_lists_parser_spec.rb and the Mail::Parsers::AddressListsParser entry point. Reproduce the parsing case and compare the issue's stated expectation of returning false with the shown ParseError and differing input. Done should be a clear, agreed behavior captured by a focused spec.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100