3 ms·
Getmail is probably your best bet for an automated email backup - that will fetch your email over IMAP (getmail-gmail-xoauth-tokens can use oauth to connect to
by g_p 6y ago
Getmail is probably your best bet for an automated email backup - that will fetch your email over IMAP (getmail-gmail-xoauth-tokens can use oauth to connect to IMAP) and store it as a maildir or mbox. You can then use that with whatever client or search system you like.
You could then use this maildir as the backend for a dovecot IMAP server and use any webmail client of your choosing to connect to this and search it etc.
I'd avoid POP3 - very old protocol and it removes your mail from the server (is this your goal?). You're definitely better using IMAP. Even if you want to delete mail from the server, you're probably safer to fetch it by IMAP, then delete it.
- nfriedly 6y agoThanks! That sounds like about what I'm looking for! And, yea, I'm not so concerned about which protocol to use or deleting the email from Google's server, I just want my own local copy of it.
- IncRnd 6y agoIf you use a local mail client, you could drag all your gmail folders to the local folder area. Most clients will then copy all the emails to a local destination. Then you could have a rule that copies all incoming mail into the local folder, catching any future mails.