40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
IMAPAccount gmail
|
|
# Address to connect to
|
|
Host imap.gmail.com
|
|
AuthMechs XOAUTH2
|
|
User christopherrparis1@gmail.com
|
|
PassCmd "oama access christopherrparis1@gmail.com"
|
|
# Pass ***************
|
|
# To store the password in an encrypted file use PassCmd instead of Pass
|
|
# PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.mailpass.gpg"
|
|
#
|
|
# Use TLS
|
|
TLSType IMAPS
|
|
# The following line should work. If you get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
|
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
|
#CertificateFile ~/.cert/imap.gmail.com.pem
|
|
|
|
|
|
IMAPStore gmail-remote
|
|
Account gmail
|
|
|
|
MaildirStore gmail-local
|
|
SubFolders Verbatim
|
|
# The trailing "/" is important
|
|
Path ~/.mail/gmail/
|
|
Inbox ~/.mail/gmail/Inbox
|
|
|
|
Channel gmail
|
|
Far :gmail-remote:
|
|
Near :gmail-local:
|
|
# Exclude everything under the internal [Gmail] folder, except the interesting folders
|
|
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
|
|
# Or include everything
|
|
#Patterns *
|
|
# Automatically create missing mailboxes, both locally and on the server
|
|
Create Both
|
|
# Sync the movement of messages between folders and deletions, add after making sure the sync works
|
|
Expunge Both
|
|
# Save the synchronization state files in the relevant directory
|
|
SyncState *m
|