DEV Community

Discussion on: How to store an email archive?

Collapse
 
dimitarnestorov profile image
Dimitar Nestorov

Thank you so much for this detailed reply. I haven't decided on the tech stack yet. I wanted to deal with the toughest choice first.

At first I was thinking to use SQL to store an original version and a "searchable" version, which is basically the email stripped out of HTML tags.

After your reply I think of starting with (1). Never have been using ElasticSearch, so would be pretty nice to learn it along the way. Problem with (1) would be inode count at some point, but I guess I will stumble upon an easy fix.

Also about attachments, I don't think I will be receiving emails with any of them. So whenever I get some I guess I'm going to be compressing them and keeping them somewhere just in case.

Again, thank you for sharing!

Collapse
 
kr428 profile image
Kristian R.

Glad I could be of help - feel free to ask if you need more input. I think you still will have some decisions to make down that road, depending upon your actual requirements and the system you're about to build - talking also about amount of messages that should be stored in total, amount of messages incoming per day/hour, ... . But not having to deal with attachments is something making this thing a bit easier.