Go to file
friedemann.blume 7ff09fa29f v3 - update usage instructions, add prebuild images 2024-07-20 10:25:11 +02:00
.DS_Store v3 - fix render all html content as well, use chunks and multithreading 2024-07-20 10:17:52 +02:00
.gitignore v1 2024-07-19 13:03:58 +02:00
Dockerfile init 2024-07-19 12:44:15 +02:00
Readme.md v3 - update usage instructions, add prebuild images 2024-07-20 10:25:11 +02:00
mbox_to_markdown.py v3 - fix render all html content as well, use chunks and multithreading 2024-07-20 10:17:52 +02:00
requirements.txt v1 2024-07-19 13:03:58 +02:00

Readme.md

Mbox to Markdown converter

This simple docker image can be used to convert a .mbox file (for example from a google gmail account export / take out) to convert it to markdown files. I used it for archive purposes, wanted to store my old gmail emails. Nothing fancy, but usefull for those who dont want to use online converters nor mess with python directly.

NOTE: In my case, a 9GB .mbox file of a Gmail mail account took around 4-5 hours because the preperation of the html files takes in this in-efficient way some time. But it gets there eventually ;)

Usage:

If you just want to use the prebuild package, its available for arm64 and amd64 arch.

docker run --rm -v ./mbox-files:/mnt/input -v ./output/:/mnt/output git.nucleolus.xyz/fblume/mbox-to-markdown:latest

Build yourself

docker build -t mbox-to-markdown .

docker run --rm -v ./mbox-files:/mnt/input -v ./output/:/mnt/output mbox-to-markdown