aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes2
-rw-r--r--.mbsyncrcbin1767 -> 1786 bytes
-rw-r--r--.mutt/keybindings5
-rw-r--r--.notmuch-configbin0 -> 2545 bytes
-rwxr-xr-xbin/mailsyncbin0 -> 526 bytes
5 files changed, 7 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index f7ce846..72425f5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -5,3 +5,5 @@
.authinfo filter=git-crypt diff=git-crypt
.newsboat/config filter=git-crypt diff=git-crypt
.newsboat/urls filter=git-crypt diff=git-crypt
+.notmuch-config filter=git-crypt diff=git-crypt
+bin/mailsync filter=git-crypt diff=git-crypt
diff --git a/.mbsyncrc b/.mbsyncrc
index 1b2ac29..493fbc4 100644
--- a/.mbsyncrc
+++ b/.mbsyncrc
Binary files differ
diff --git a/.mutt/keybindings b/.mutt/keybindings
index 60e3178..f648e70 100644
--- a/.mutt/keybindings
+++ b/.mutt/keybindings
@@ -12,3 +12,8 @@ bind attach,index G last-entry
bind index,pager \Cn sidebar-next
bind index,pager \Cp sidebar-prev
+
+# '^L' performs a notmuch query, showing only the results
+macro index \Cl "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;s/\\+/\\\\+/g for@a;s/=/\\\\=/g for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
+# 'a' shows all messages again (supersedes default <alias> binding)
+macro index a "<limit>all\n" "show all messages (undo limit)"
diff --git a/.notmuch-config b/.notmuch-config
new file mode 100644
index 0000000..f8ffee0
--- /dev/null
+++ b/.notmuch-config
Binary files differ
diff --git a/bin/mailsync b/bin/mailsync
new file mode 100755
index 0000000..1b21b84
--- /dev/null
+++ b/bin/mailsync
Binary files differ