commit d4b2db87d1066496444a1fbfa65fff8c503f54a4 parent 6a5aeea2e7d68499d1db97b4320649780f23487e Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Tue, 8 Mar 2016 09:39:30 -0800 run imapfilter as offlineimap presynchook Diffstat:
M | .mutt/muttrc | | | 4 | ++-- |
M | .offlineimaprc | | | 1 | + |
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -154,8 +154,8 @@ set query_command= "abook --mutt-query '%s'" macro index,pager A "!$EDITOR ~/.mutt/aliases\n:source ~/.mutt/aliases\n" "Edit aliases file and reload it" # Sync email -macro index O "<shell-escape>imapfilter -c ~/.imapfilter/riseup.lua && offlineimap<enter>" "run offlineimap to sync all mail" -macro index o "<shell-escape>imapfilter -c ~/.imapfilter/riseup.lua && offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox" +macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail" +macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox" # View and select urls macro pager U "|urlview<enter>" "call urlview to open links" diff --git a/.offlineimaprc b/.offlineimaprc @@ -31,6 +31,7 @@ localrepository = riseup-local remoterepository = riseup-remote # Status cache. Default is plain, which eventually becomes huge and slow. status_backend = sqlite +presynchook = imapfilter -c ~/.imapfilter/riseup.lua postsynchook = notmuch new # Minutes between syncs