mutt: Update neomutt configuration

Changed some colors, some keymaps and made it more flexible for new mail
account setups. Also removed most of the static gmail-related account
stuff since I don't need this in my public repo.
This commit is contained in:
Marty Oehme 2023-12-12 12:37:13 +01:00
parent 48ed4818f2
commit 78987c493e
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
9 changed files with 36 additions and 97 deletions

View file

@ -1,68 +1,12 @@
# documentation: https://wiki.archlinux.org/index.php/isync
IMAPAccount gmail
# Address to connect to
Host imap.gmail.com
UserCmd "pass show misc/gmail-app-password | grep username | cut -d: -f2"
PassCmd "pass show misc/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
TLSType 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
SubFolders Verbatim
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