Howdy folks!
Would love to hear how people manage their personal inbox[es]. I am looking for ideas on how to best archive mail, while possibly still making it accessible.
Has anyone implemented something where, let’s say, after 2 weeks, emails are stored on some type of self-hosted service, leaving minimal footprint on the cloud?
OpenArchiver was one of the first things I had come across, but, again, just brainstorming and looking for other options, even feedback on OpenArchiver.
Thank you in advance!
I’ve dipped my toe in with mailpiler, but it’s a project that I haven’t fully completed. I hadn’t seen IpenArchiver before. That looks interesting.
Thank you, I will check it out!
deleted by creator
I try my hardest to live inbox zero, so I have never thought about saving emails as emails. If it is important enough I save it into paperless.
I respect that. In my mind, there are three types of email people in the world, the zero inbox people, like yourself, the zero unread who all the maill, like me and the always unread people. That last group always gets to me, hehe.
Yes what you describe is exactly what I’m doing. You don’t need any fancy apps for it, in fact it’s best if you keep it simple and do it all with IMAP.
Now, your email provider needs to support IMAP. Normally I wouldn’t even mention this but the so-called “encrypted mail” providers like Proton make you jump through hoops so it’s not a given. (Personally I never use a provider that doesn’t offer straight IMAP, smells too much of potential lock-in.)
You also want to self-host a private IMAP server. It’s the easiest way to handle things. Dovecot is pretty easy to set up and very good.
(You can sync to disk as plain text files if you want but you’ll have to choose a format, and actually using those files can be awkward. Syncing to a live IMAP is ideal IMO.)
Then you just use the
mbsyncorimapsyncCLI tool on a schedule to bring in messages from the live mailbox(es) to the private ones.You can also self-host a webmail app for the private IMAP server (I like Snappy and Roundcube) that you can access securely through a reverse proxy and search your emails or you can even configure it to send through the provider’s SMTP.
You can keep using other email clients with the live mailbox during this time.
after 2 weeks, emails are stored on some type of self-hosted service, leaving minimal footprint on the cloud?
Neither mbsync nor imapsync have this feature AFAIK so you’ll have to use a different tool for that.
I achieve this in my desktop email client (Claws Mail) which has this option for POP3.
If you want to script and automate this cleanup there are CLI tools that can do it, for example
imapfilter(which takes a Lua config script) or you can put together a Python script using theimapclientlibrary (available in pip).Hope this helps.
I actually never thought of going this route. I just figured there are a slew of options out there, but, not much feedback on them. I still have to fine tune all of my goals with how I want to set it up. The short vision, was to minimize my inbox and clean up what I want to retain. It’s also part of a bigger project to migrate off of gmail fully and have the ability to be flexible with the service I use, or if I host my email myself through whatever medium.
I appreciate you calling out the required IMAP support, I do use Proton as well. There is a bridge for some IMAP functionality for Proton, but, if I recall correctly it is limited. I use it for tagging and organization right now.
This definitely helps. Thank you for sharing!
I have been using https://github.com/s1t5/mail-archiver and I love it!
I will have to bake this off with Bichon and OpenArchiver from the looks for it :) - thanks for sharing!
I’ve been using Bichon for a few months and I think it’s fantastic. It’s easy to set up, connect to multiple accounts, automate, download as regularly as you’d like, search, filter, sort emails, etc. etc.
Noted. From the quick overview video seems to have a variety of tools to help with the overall mail management for sure. Thanks!
Use this too, also only for a few months but seems to work reasonably well.
Heads up if you are one of the people who likes hdds to spin down when not used, Bichon is one of the services that seems to not allow that.
I haven’t started yet but I was also looking for a way to store my emails locally.
What I want to try is to have dovecot managing a Maildir+ folder structure. That way (unless someone tells me it’s a stupid idea) my mail archive remains human readable even if no specialised app can open them for some reason.
I can keep reading the emails in my IMAP providers with whichever MUA I prefer, and connect that MUA to my local dovecot in order to move the emails from IMAP to local storage.
I guess that translates well to selfhosted too.
Syncing to dovecot is what I landed on eventually too. Maildir format is plain text files so you can run backups on them as well as get the benefit of IMAP access so you can point an email client or webmail app at it to do searches and reorganizations.
FWIW I’ve tried it the other way around, to sync from live IMAP mailbox to disk files and then convince dovecot or another private IMAP server to serve them read-only and it can be done but it’s a pain in the butt. Plus, it only gets you the ability to search but not to handle and reorganize the archive.
The main trick is to neatly separate any handling and organization you do in the live mailbox from the organization you do on the private side. I achieve that by having a folder called
Archiveon the private server that doesn’t exist on live and I do all long term storage reorganization in there, while folders and changes on live get propagated to their own folders.Not that I know much on the best practices, but, it sounds very similar to how people using Outlook archive and backup (if people still do this) their PST files. I won’t say it is a bad idea :) - appreciate the input!
Run a mail server, don’t connect to the internet though, just connect to it over vpn or something.
Still searchable, off the cloud.
Still on my todo list. I intended to go with notmuchmail which apparently can deal with decades of mail easily.
Thanks will check it out!
deleted by creator






