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!

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    2
    ·
    14 hours ago

    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 mbsync or imapsync CLI 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 the imapclient library (available in pip).

    Hope this helps.

    • seanland@lemmy.sean.landOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      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!

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 hours ago

        At a minimum, a good first step is to get your own domain if you haven’t, and start moving your accounts over to addresses @ that domain. That takes a while.

        You can also probably grab a copy of your current emails through Google Takeout and maybe you can figure out something for Proton as well. Any backup is better than no backup.

        • seanland@lemmy.sean.landOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          Yeah, I already have my own domains and have hosted email in various services (work mail, m365) in the past.

          I have forwarding setup to proton, so I have a copy, just not a local one yet. Proton in my mind is temporary too, as I will migrate to something with more control. Fortunately, I’m only really using it for mail.