1

I have a large MBOX file (16000 emails) from a public email group which is now closed. For archival and research purposes, I would like to serve these emails on a website. How can I go about accomplishing this?

I downloaded an MBOX viewer on Windows which lets me create HTML and EML files but I am not sure how I can read this data using JavaScript and display in a tabular format on a web page.

I tried exporting these emails to JSON and used the fetch command to display data in table format. But this approach works for plain text. Most emails have custom formatting without which the content is difficult to follow.

So in short I am looking for a way to create a simple web page where users can filter for date, sender, email subject, or email content (4 columns of the table) using the MBOX or HTML/EML files for each email.

1
  • You may want to try using Python. There is library mailbox that could be useful. You could use Django to build the web app, or just use mailbox/Python to dump the data into a database and use whatever platform you prefer to build the UI. Commented Jan 10, 2024 at 12:25

1 Answer 1

0

if you can do a bit of Python, creating a content_to_json() copy of content_to_html() inside mbox2html seems straightforward. You'd create a json index with the fields you want to filter on instead of writing out html in write_message_tree().

I use the script to archive to a static html page, but let the mime text/html parts run through python-readability instead, something you could consider too in a json version.

Leave me a comment if you want to do this and need help.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.