I am evaluating email parsing libraries for an Elixir/Erlang project and am trying to figure out which one is "best", or if I should build my own. The criteria I am using for "best" is: which library is the most RFC compliant.
The problem I am facing is that (unsurprisingly) each library has its own tests, so If I want to compare apples-to-apples I need to run them against the same tests.
Is there a collection of test emails available that I can use for evaluation? Or am I better off to copy tests from a more active Java/Ruby/Python library?
I don't think you will find any complete test suite for e-mail parsing in Elixir, but it would be a very nice project to work on.
If I'm going to start a project like that, I would probably pick tests for any library, evaluate how complete it is (based on the RFC) and build a generic way to run that against any library.
DockYard/elixir-mail/blob/master/test/mail/parsers/rfc_2822_test.exs can be a good start point for you.