aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-01 00:15:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-01 00:15:06 -0300
commit026202e592084095e3a4c17465d505a19367e3b9 (patch)
treeb085598578be44dc4a80c5d291c45172ca9dc954
parent88739b72cec04f365e73af071d5c37601743b802 (diff)
downloaddotfiles-026202e592084095e3a4c17465d505a19367e3b9.tar.gz
dotfiles-026202e592084095e3a4c17465d505a19367e3b9.tar.bz2
Smarter mutt macro for mail checking
-rw-r--r--modules/mutt/muttrc.dot.link6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mutt/muttrc.dot.link b/modules/mutt/muttrc.dot.link
index 1d10ee7..5f5679f 100644
--- a/modules/mutt/muttrc.dot.link
+++ b/modules/mutt/muttrc.dot.link
@@ -352,9 +352,9 @@ mailboxes `echo $HOME/mail/Sync/*/*`
#macro index <esc>f "!clear;fetchmail;philter.sh\n" "Sync remote with local mail"
macro pager <esc>f "!clear;fetchmail\n" "Sync remote with local mail"
macro index <esc>f "!clear;fetchmail\n" "Sync remote with local mail"
-macro pager G "!clear;fetchmail\n" "Sync remote with local mail"
-macro index G "!clear;fetchmail\n" "Sync remote with local mail"
-macro index $ "<change-folder>=INBOX/\n<sync-mailbox>" "Sync mailbox and refresh list of new messages"
+macro pager G "<enter-command>unset wait_key\n!clear ; fetchmail || [ $? -eq 1 ]\n<change-folder>=INBOX/\n<sync-mailbox>\n" "Sync remote with local mail"
+macro index G "<enter-command>unset wait_key\n!clear ; fetchmail || [ $? -eq 1 ]\n<change-folder>=INBOX/\n<sync-mailbox>\n" "Sync remote with local mail"
+macro index $ "<change-folder>=INBOX/\n<sync-mailbox>\n" "Sync mailbox and refresh list of new messages"
macro index n "<next-unread-mailbox>"
# -------------