Import email messages to Obsidian via EML files

I created a small python script to import email messages to Obsidian.

The script monitors a specified directory for any new file with .eml extension.
When you save a message in the EML format into this directory, the script will automatically convert it into a Markdown and copy it to an appropriate Vault directory.
Attachments are also handled.

I’m not sure if a similar script/program has been written already by someone else, but I could not find anything by a quick search. So I share my script, hoping that it is useful for someone.


I’ve seen people asking about storing email in Obsidian before, so this should interest someone. If you’ve seen those threads, too, feel free to link this post in them.