From ea4b6f5374daf1e3705870c3c59bf5488e0045ca Mon Sep 17 00:00:00 2001 From: ralphe Date: Mon, 19 Mar 2018 08:05:28 +0100 Subject: [PATCH] sync email --- muttrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/muttrc b/muttrc index 9478d8a..6a7c108 100644 --- a/muttrc +++ b/muttrc @@ -46,6 +46,10 @@ macro index,pager \Cu |urlview\n #Ctrl-R to mark all as read macro index \Cr "T~UN." "mark all messages as read" +#sync email +macro index O "offlineimap" "run offlineimap to sync all mail" +macro index o "offlineimap -qf INBOX" "run offlineimap to sync inbox" + # Notmuch searching macro index \Cf "unset wait_keyread -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"" "show only messages matching a notmuch pattern" macro index A "all\n" "show all messages (undo limit)"