test: add unit test for every logic branch
In doing this I realized I've account for mixed content-types so I
removed the todo comment.
test: add simple email test
fix: use children of multipart/related that are in right format
This came up with an email that was an invite. The top level was
multipart/mixed and multipart/related. Diving into related revealed a
text/html block not the codified multipart/alternative block I've been
expecting. multipart/mixed is codified in RFC-1521[1]
[1]https://tools.ietf.org/html/rfc1521#section-7.2.2
chore: mirror LICENSE from main mailparse repo
feat: add html extension to html file
fix: account for multipart/alternative
refactor: exit if message body is not processable
feat: add format argument to flip between plain and html
fix: replace slashes in Message-ID with dashes because file paths
chore: github action to build binary
chore: update email in cargo.toml
refactor: make error handling and feedback better
refactor: move body_parse into its own func