Skip to content

Instantly share code, notes, and snippets.

@fadenb
Created February 8, 2024 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadenb/29ab7ee863ea3e817568b1991bffd8a4 to your computer and use it in GitHub Desktop.
Save fadenb/29ab7ee863ea3e817568b1991bffd8a4 to your computer and use it in GitHub Desktop.
Example getmail6 config file to fetch a copy of all emails from Gmail. Should be placed at `~/.config/getmail/getmailrc`.
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = <YOUR-USERNAME@gmail.com>
password = <YOUR-APP-PASSWORD-WHILE-THEY-STILL-ALLOW-IT>
mailboxes = ALL
[destination]
type = Mboxrd
path = ~/Mail/<FILENAME>
[options]
read_all = true
delete = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment