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
|
2020-09-24 12:22:03 +00:00
|
|
|
UserCmd "gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode ask ~/.local/share/pass/misc/aerc-gmail-app-password.gpg | grep username | cut -d: -f2"
|
|
|
|
PassCmd "gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode ask ~/.local/share/pass/misc/aerc-gmail-app-password.gpg | head -n1"
|
2020-09-14 08:47:02 +00:00
|
|
|
# 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
|
|
|
|
2021-10-10 21:00:16 +00:00
|
|
|
Channel gmail-inbox
|
|
|
|
Far :gmail-remote:INBOX
|
|
|
|
Near :mail-local:inbox
|
2020-09-14 08:47:02 +00:00
|
|
|
# Exclude everything under the internal [Gmail] folder, except the interesting folders
|
|
|
|
# Automatically create missing mailboxes, both locally and on the server
|
2021-10-10 21:00:16 +00:00
|
|
|
Create Near
|
2020-09-14 08:47:02 +00:00
|
|
|
# Save the synchronization state files in the relevant directory
|
|
|
|
SyncState *
|
2021-10-10 21:00:16 +00:00
|
|
|
|
|
|
|
Channel gmail-sent
|
|
|
|
Far :gmail-remote:"[Google Mail]/Sent Mail"
|
|
|
|
Near :mail-local:sent
|
|
|
|
Create Near
|
|
|
|
|
|
|
|
Channel gmail-trash
|
|
|
|
Far :gmail-remote:"[Google Mail]/Trash"
|
|
|
|
Near :mail-local:trash
|
|
|
|
Create Near
|
|
|
|
|
|
|
|
Channel gmail-important
|
|
|
|
Far :gmail-remote:"[Google Mail]/Starred"
|
|
|
|
Near :mail-local:important
|
|
|
|
Create Near
|
|
|
|
|
|
|
|
Channel gmail-drafts
|
|
|
|
Far :gmail-remote:"[Google Mail]/Drafts"
|
|
|
|
Near :mail-local:drafts
|
|
|
|
Create Near
|
|
|
|
|
|
|
|
Channel gmail-all
|
|
|
|
Far :gmail-remote:"[Google Mail]/All Mail"
|
|
|
|
Near :mail-local:archive
|
|
|
|
Create Near
|
|
|
|
|
|
|
|
# Put all the channels into one group
|
|
|
|
Group googlemail
|
|
|
|
Channel gmail-inbox
|
|
|
|
Channel gmail-important
|
|
|
|
Channel gmail-sent
|
|
|
|
Channel gmail-trash
|
|
|
|
Channel gmail-all
|