2020-09-14 08:47:02 +00:00
|
|
|
# documentation: https://wiki.archlinux.org/index.php/isync
|
|
|
|
|
|
|
|
IMAPAccount gmail
|
|
|
|
# Address to connect to
|
|
|
|
Host imap.gmail.com
|
|
|
|
UserCmd "pass show misc/aerc-gmail-app-password | grep username | cut -d: -f2"
|
|
|
|
PassCmd "pass show misc/aerc-gmail-app-password | head -n1"
|
|
|
|
# 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 SSL
|
|
|
|
SSLType IMAPS
|
|
|
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
2020-09-16 16:49:08 +00:00
|
|
|
# Throttle simultaneous access to make google happy
|
|
|
|
PipelineDepth 60
|
2020-09-14 08:47:02 +00:00
|
|
|
|
|
|
|
IMAPStore gmail-remote
|
|
|
|
Account gmail
|
|
|
|
|
2020-09-16 16:49:08 +00:00
|
|
|
MaildirStore mail-local
|
2020-09-14 08:47:02 +00:00
|
|
|
Subfolders Verbatim
|
|
|
|
# The trailing "/" is important
|
|
|
|
Path ~/documents/mail/
|
|
|
|
Inbox ~/documents/mail/Inbox
|
2020-09-16 16:49:08 +00:00
|
|
|
# define generous maximum size to store locally
|
|
|
|
MaxSize 50M
|
2020-09-14 08:47:02 +00:00
|
|
|
|
2020-09-16 16:49:08 +00:00
|
|
|
Channel gmail-general
|
2020-09-14 08:47:02 +00:00
|
|
|
Far :gmail-remote:
|
2020-09-16 16:49:08 +00:00
|
|
|
Near :mail-local:
|
2020-09-14 08:47:02 +00:00
|
|
|
# Exclude everything under the internal [Gmail] folder, except the interesting folders
|
2020-09-16 16:49:08 +00:00
|
|
|
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Trash"
|
2020-09-14 08:47:02 +00:00
|
|
|
#Patterns *
|
|
|
|
# Automatically create missing mailboxes, both locally and on the server
|
|
|
|
Create Both
|
|
|
|
# Save the synchronization state files in the relevant directory
|
|
|
|
SyncState *
|