Library (or best way) to parse email list?

Does anyone know of an Elixir library to help parse an email list?

Ideally it would support formats such as:

ada@test.lindsaar.net, My Group: mikel@test.lindsaar.net, Bob <bob@test.lindsaar.net>;

Or:

ada@test.lindsaar.net
My Group: mikel@test.lindsaar.net
Bob <bob@test.lindsaar.net>

Or:

first_name,ignore,email
bob, CEO, bob@example.com
"Bob's, uncle", friend, bob2@example.com

Does anyone know of any library that would help with this sort of problem?

1 Like
str |> String.split("\n") |> Enum.map(&YourSingleEmailParser.parse/1)

Something like that.

2 Likes