From 674b1cfeac25321d965304ab1e516e80d524f3ab Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 15 Sep 2020 11:11:51 +0200 Subject: [PATCH] mail: Add aerc notmuch configuration --- mail/.config/aerc/accounts.conf | 3 ++- mail/.config/aerc/binds.conf | 20 ++++++++++++-------- mail/.config/aerc/notmuch-querymap | 9 +++++++++ mail/.config/isync/mbsyncrc | 1 + 4 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 mail/.config/aerc/notmuch-querymap diff --git a/mail/.config/aerc/accounts.conf b/mail/.config/aerc/accounts.conf index 09905e3..264c7ef 100644 --- a/mail/.config/aerc/accounts.conf +++ b/mail/.config/aerc/accounts.conf @@ -1,8 +1,9 @@ [Personal] -source = maildir://~/documents/mail +source = notmuch://~/documents/mail outgoing = smtp+plain://marty.oehme%40gmail.com@smtp.gmail.com:587 outgoing-cred-cmd = pass 'misc/aerc-gmail-app-password' | head -1 default = Inbox smtp-starttls = yes from = Marty Oehme copy-to = Sent +query-map = ~/.config/aerc/notmuch-querymap diff --git a/mail/.config/aerc/binds.conf b/mail/.config/aerc/binds.conf index c47f729..e333b89 100644 --- a/mail/.config/aerc/binds.conf +++ b/mail/.config/aerc/binds.conf @@ -1,9 +1,10 @@ # Binds are of the form = # To use '=' in a key sequence, substitute it with "Eq": "" # If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit - = :prev-tab - = :next-tab +gT = :prev-tab +gt = :next-tab = :term +gR = :exec updatemail [messages] q = :quit @@ -26,9 +27,12 @@ J = :next-folder = :next-folder K = :prev-folder = :prev-folder -gi = :cf INBOX -ga = :cf [Google Mail]/All Mail -gt = :cf [Google Mail]/Trash +gi = :cf Inbox +gm = :cf Important +ga = :cf Archive +gA = :cf All +gs = :cf Sent +gt = :cf Trash v = :mark -t V = :mark -v @@ -36,9 +40,9 @@ V = :mark -v = :view l = :view D = :prompt 'Really delete this message?' 'delete-message' -d = :mv [Google Mail]/Trash -a = :mv [Google Mail]/All Mail -A = :mv [Google Mail]/All Mail +d = :modify-labels +deleted -inbox -archived +a = :modify-labels +archived -deleted -inbox +A = :modify-labels +archived -deleted -inbox C = :compose diff --git a/mail/.config/aerc/notmuch-querymap b/mail/.config/aerc/notmuch-querymap new file mode 100644 index 0000000..79db81e --- /dev/null +++ b/mail/.config/aerc/notmuch-querymap @@ -0,0 +1,9 @@ +All=* +Inbox=tag:inbox and not tag:archived and not tag:dump +Archive=tag:archived and not tag:inbox and not tag:dump +Dump=tag:dump and not tag:inbox +Trash=tag:deleted +Important=tag:flagged +Sent=from:marty.oehme@gmail.com +Replied=tag:replied +Patches=subject:/^\[PATCH/ diff --git a/mail/.config/isync/mbsyncrc b/mail/.config/isync/mbsyncrc index d6e6447..6320c0d 100644 --- a/mail/.config/isync/mbsyncrc +++ b/mail/.config/isync/mbsyncrc @@ -14,6 +14,7 @@ SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt #CertificateFile ~/.cert/imap.gmail.com.pem #CertificateFile ~/.cert/Equifax_Secure_CA.pem +PipelineDepth 50 IMAPStore gmail-remote Account gmail