Skip to content

Instantly share code, notes, and snippets.

@fadenb
Created February 8, 2024 12:14
Show Gist options
  • 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 = <[email protected]>
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