This repo has evolved into a Clojure
library downloadable at Clojars
and is now maintained in a different repo:
https://github.com/DavidVujic/email-attachments
Experimenting with parsing an email file using Clojure.
Example, extract an attached CSV file from an email and extract the content as a stream:
(->> "my_email_file.eml"
io/input-stream
email/content-types
(filter email/csv?)
first
email/content-stream)
Got a lot of inspiration and ideas from these repositories:
Useful Java docs: