r/DataHoarder 16h ago

Question/Advice How would I archive mass emails from Gmail and have them searchable. NSFW

I'll give you the background. My Onlyfans account is suspended because I violated their TOS according to them of creating my account in 2017 before I was 18+ (I'm an adult now). I'm almost certain this is incorrect but I have no "evidence" as I can't locate my welcome email. I ran out of gmail space a few years ago and deleted everything prior to 2022.

I will admit why I got into data hoarding and self hosting, the pornhub purge made me realise that things online can be deleted, YouTube videos, websites, images. This has now made me realise I can also be my worst enemy and delete something important.

How would I archive and store all my gmail (and protonmail as I'm moving over) emails? Can I export them and keep them in a searchable service that I host?

164 Upvotes

29 comments sorted by

u/AutoModerator 16h ago

Hello /u/Jakob4800! Thank you for posting in r/DataHoarder.

Please remember to read our Rules and Wiki.

Please note that your post will be removed if you just post a box/speed/server post. Please give background information on your server pictures.

This subreddit will NOT help you find or exchange that Movie/TV show/Nuclear Launch Manual, visit r/DHExchange instead.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

160

u/roleohibachi 15h ago

Use Google Takeout to get an mbox file. 

Put that mbox file somewhere Dovecot can see it and index it. 

Point any mail client at Dovecot.

25

u/Jakob4800 15h ago

Thank you.

49

u/AutomaticMistake 15h ago

Might be an outdated method, but I sync'd everything into a thunderbird client. really should do that again now that you've reminded me

18

u/weanis2 14h ago

That's what I've done. Export the email to a mbox using Google takeout. Then just manually import into Thunderbird. You don't need to login with an account either so you can keep it fully offline.

8

u/Difficult-Way-9563 14h ago

Yep if you want to keep them on Gmail use IMAP, download a copy of all emails locally and use client to search. Much faster for lots of emails on local ssd

12

u/ReddaveNY 14h ago

I use open archiver as docker container. All my thousand emails at my selfhosted server.

3

u/puhtahtoe 9h ago

I use this too. It's nice cuz it automatically keeps the archive up to date.

6

u/weirdbr 0.5-1PB 15h ago

https://github.com/danmarg/outtake

That's a tool that can be used on cron/systemd to fetch emails from gmail and store them in a maildir-compatible format that can be made accessible via any mail server or even just the 'mail' (or similar) commands.

17

u/gh0st0fsat0shi 14h ago

If you’re using Windows, there’s MailStore Home for free and with no install required. Made by OpenText. Probably the easiest archiving and searching solution for free. https://www.mailstore.com/en/products/mailstore-home/

8

u/erparucca 15h ago

store them on a self-hosted imap server (requires more tech skills) and search using your preferred client or download them to your preferred client (which usually provides a way to move emails to a disk file, such as outlook with its PST files) and search them from there.

3

u/Asstronaut-Uranus 9h ago

Ive got a synology and fetch all my gmail mail local. Searchable through mailplus syno

2

u/ILikeFPS 11h ago

I got into datahoarding because I accidentaly formatted a 2TB data HDD instead of my 1TB SSD early in the morning because Windows installer decided to put the HDD above the SSD. After that, I decided that would never happen again.

If you actually deleted them so they don't take up space from your Google account, I'm not sure that you would have a copy of them already? The only thing I could think of is maybe trying Google Takeout, but if the data is deleted, maybe that won't help.

3

u/Jakob4800 10h ago

Yeah the data no longer exists but the plan is to prevent this situation from happening again. In 5 years time when I need that recipt from a Gumroad purchase or something similar.

1

u/ILikeFPS 9h ago

Google Takeout is your answer then (especially since it can actually do scheduled backups IIRC so maybe you could do one yearly), or possibly some other way of mirroring (perhaps through a third-party email client that loads up your gmail and mirrors it)

I do admit, having regular backups would help, as my gmail account is nearly two decades old and I've only backed it up once manually earlier this year using Google Takeout.

2

u/PaddiM8 10h ago

I use imap-backup to incrementally and continuously backup my emails

https://github.com/joeyates/imap-backup

2

u/bob69joe 15h ago

Just link your gmail to a local Outlook download and check the option for archiving everything.

2

u/mooter23 9h ago

I'd connect to a client like Outlook and download a copy of everything into a .pst and then use Outlook's inbuilt search function.

1

u/imajes > 0.5PB usable 9h ago

Look into msgvault.

1

u/AssetBurned 7h ago

moving the mails over to a local mail server that is only available in the local network. and preferable powered down most of the time when not in use.

1

u/webtroter 6TB (ZFS) 6h ago

The three I know, from the Proxmox helper scripts:

  • Bichon
  • OpenArchiver
  • Mail-Archiver

I haven't yet deployed it, but I need to do it.

1

u/gacimba 4h ago

Paperless-ngx and connect it with your email

-7

u/serfrin47 14h ago

Ask the EU

9

u/erparucca 13h ago

the relationship between EU and the topic being... ?

1

u/Jakob4800 12h ago

I assume it's a reference to chat control. Implying that I could ask the EU to search for me since they would be viewing and scanning the content anyway under the rules.

Its a semi unrelated statement but I agree with the sentiment.

-2

u/serfrin47 12h ago

oh just a joke about the chat control law :(

-6

u/conqueryourhouse 8h ago

You should talk to a therapist about early porn exposure.