I’n not sure this is a cool workflow, but didn’t know where else to post it.
I have, for a very long time, wanted a way to take my emails off my mailserver and store locally, but still be able to search and forward or reply to the email if necessary. To this end I have spend a few days with Claude AI to achieve this.
I have now completed this added a Craft Publish link to the instructions on what I did. Please note that this was created for my particular context. I post it here as you may find it as a good starting point for your own journey should you choose to do so.
I’ve had email for 10 years in Devonthink, EagleFiler, Maildir (old emacs) and Mailsteward. This has created a lot of duplication. Once I had imported these to Notmuch it reported 167K files. However it showed only 92K emails. Notmuch’s dedupe removed in 75K emails in about 10-15min. My email archive is now 17GB, is easy to backup and more importantly ease to search. The guide helped me setup scripts to do simple searches such as:
- Find meeting minutes from December:
msearch subject:"minutes" date:2025-11..2025-12
I then run openeml filepath and it opens in mail.
Search on 92k emails is very fast on my m1 mbp. I have now deleted my Devonthink, Eaglefiler and Maildirs and recovered a lot of space. I’m keeping mailsteward for the moment to see how this works over time. I can also transfer this setup easily to linux if I move there in the future.
This set up is for archive purposes only. I’m not running it as my daily email client. For this I continue to use Mailmaven. It means I only really need emails dating back a year in Mailmaven. Everything else goes inthe Notmuch email archive.
Craft Link: Email Archive Migration Guide
Please note that this file may change as I adapt it further for my needs. I did want to attach an md file but the forum won’t permit this.