commit 3b01d46bebcba89082a607383a5c8bf883e29ada
parent fad89583b28037450d6477cc986cf89c91dd2ae4
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 12 Jun 2019 11:09:12 +0200
Update mutt bindings for mbsync, remove offlineimap keys from tmux
Diffstat:
2 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
@@ -1,4 +1,3 @@
-# IMAP: offlineimap
set folder = "~/.mail"
source "~/.config/mutt/mailboxes"
set spoolfile = "+adamsgaard/INBOX"
@@ -208,17 +207,13 @@ macro index,pager S "<enter-command>unset wait_key<enter>\
<save-message>=adamsgaard/Spam<enter>" "mark as spam"
# sync all accounts
-#macro index O "<enter-command>unset wait_key<enter><shell-escape>offlineimap<enter><enter-command>set wait_key<enter>"
-macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"
+#macro index O "<enter-command>unset wait_key<enter><shell-escape>mbsync -a<enter><enter-command>set wait_key<enter>"
+macro index O "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -l 1 \"mbsync -a\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"
# sync current inbox
-folder-hook adamsgaard 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a adamsgaard -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
-folder-hook riseup 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a riseup -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
-folder-hook princeton 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a princeton -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
-folder-hook geomail 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -p 25 \"offlineimap -a geomail -qf INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
-
-macro index K "<enter-command>unset wait_key<enter>\
-<shell-escape>offlineimap-kill.sh<enter>" "kill all offlineimap processes"
+folder-hook adamsgaard 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -l 1 \"mbsync adamsgaard:INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
+folder-hook princeton 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -l 1 \"mbsync princeton:INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
+folder-hook geomail 'macro index o "<enter-command>unset wait_key<enter><shell-escape>tmux split-window -l 1 \"mbsync geomail:INBOX\"; tmux select-pane -l<enter><enter-command>set wait_key<enter>"'
macro index U "<limit>all\n" "show all messages (undo limit)"
diff --git a/.tmux.conf b/.tmux.conf
@@ -158,10 +158,6 @@ bind u capture-pane -J \; \
delete-buffer \; \
split-window -l 10 "urlview '/tmp/active_tmux_buffer' && rm /tmp/active_tmux_buffer"
-# Launch offlineimap in inactive splits
-bind o split-window -p 25 '$SHELL -c "offlineimap -qf INBOX"' \; select-pane -l
-bind O split-window -p 25 '$SHELL -c "offlineimap"' \; select-pane -l
-
bind -n C-M-v new-window -n vim "vim"
bind -n C-M-w new-window -n weather \
"curl 'wttr.in/?m'; echo -e '\nPress <enter> to quit'; read -n 1 -s"