Marty Oehme
f4c3944519
Made mail dir synchronization simpler - only a couple of important directories will ever get synchronized to the local file system, but still containing basically all important incoming mails. Removed aerc and switched it for neomutt. aerc is very nice and needs little to no configuration but neomutt is, as of this moment, just more stable and mature. It opens quickly, never crashes, has a nice indexing and quick e-mail handling behavior and is incredibly customizable. Basically, once you put in some configuration effort, it is everything aerc isn't --- and that is good, both have their reasons for existing. It's just that mutt currently works better for me and will thus be the e-mail reader of choice from now on.
68 lines
1.9 KiB
Text
68 lines
1.9 KiB
Text
# documentation: https://wiki.archlinux.org/index.php/isync
|
|
|
|
IMAPAccount gmail
|
|
# Address to connect to
|
|
Host imap.gmail.com
|
|
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"
|
|
# 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
|
|
# Throttle simultaneous access to make google happy
|
|
PipelineDepth 60
|
|
|
|
IMAPStore gmail-remote
|
|
Account gmail
|
|
|
|
MaildirStore mail-local
|
|
Subfolders Verbatim
|
|
# The trailing "/" is important
|
|
Path ~/documents/mail/
|
|
Inbox ~/documents/mail/Inbox
|
|
# define generous maximum size to store locally
|
|
MaxSize 50M
|
|
|
|
Channel gmail-inbox
|
|
Far :gmail-remote:INBOX
|
|
Near :mail-local:inbox
|
|
# Exclude everything under the internal [Gmail] folder, except the interesting folders
|
|
# Automatically create missing mailboxes, both locally and on the server
|
|
Create Near
|
|
# Save the synchronization state files in the relevant directory
|
|
SyncState *
|
|
|
|
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
|