commit 9105e53153cfc55eb439cb9213ee45c28331c575
parent 763b34211736f5ab0de079edf2c8141e242bdf0c
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sun, 28 Mar 2021 12:53:44 +0200
mutt: use built-in notmuch support & auto sync db
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -94,7 +94,7 @@ bind attach <return> view-mailcap
bind attach l view-mailcap
# General mappings
-bind index,pager S sync-mailbox
+macro index,pager S '<sync-mailbox><shell-escape>notmuch new<enter>'
bind compose p postpone-message
bind compose l view-attach
bind compose h exit
diff --git a/mutt/personal b/mutt/personal
@@ -27,8 +27,8 @@ set ssl_starttls = yes
# Hook -- IMPORTANT!
account-hook $folder "set imap_user=$my_personal_email imap_pass=$my_personal_pass_cmd"
-macro index O "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email<enter>" "run mbsync to sync $my_personal_email"
-macro index o "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email:INBOX,Sent<enter>" "run mbsync to sync all mail"
+macro index O "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email && notmuch new<enter>" "run mbsync to sync $my_personal_email"
+macro index o "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email:INBOX,Sent && notmuch new<enter>" "run mbsync to sync all mail"
macro index,pager A "<save-message>=Archive<enter>" "move mail to Archive"
macro index,pager gi "<change-folder>=Inbox<enter>" "go to Inbox"
macro index,pager ga "<change-folder>=Archive<enter>" "go to Archive"
diff --git a/mutt/school b/mutt/school
@@ -27,8 +27,8 @@ set ssl_starttls = yes
# Hook -- IMPORTANT!
account-hook $folder "set imap_user=$my_school_email imap_pass=$my_school_pass_cmd"
-macro index O "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_school_email<enter>" "run mbsync to sync $my_school_email"
-macro index o "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_school_email:INBOX,'Sent Items'<enter>" "run mbsync to sync all mail"
+macro index O "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_school_email && notmuch new<enter>" "run mbsync to sync $my_school_email"
+macro index o "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_school_email:INBOX,'Sent Items' && notmuch new<enter>" "run mbsync to sync all mail"
macro index,pager A "<save-message>=Archive<enter>" "move mail to Archive"
macro index,pager gi "<change-folder>=Inbox<enter>" "go to Inbox"
macro index,pager ga "<change-folder>=Archive<enter>" "go to Archive"