From 7df5a4e269d12a91fc85932809444c846f3ef8dd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 31 Dec 2014 12:51:03 -0500 Subject: [PATCH] mu4e syncing into two commands. --- dotfiles/lib/shellenv/mu4e.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dotfiles/lib/shellenv/mu4e.sh b/dotfiles/lib/shellenv/mu4e.sh index a095bd1e..da8687d3 100644 --- a/dotfiles/lib/shellenv/mu4e.sh +++ b/dotfiles/lib/shellenv/mu4e.sh @@ -17,8 +17,7 @@ function mu4e_alert_for_filename { -appIcon $APP_ICON } -function mu4e_update_mail { - # mail_sync_command "$@" +function mu4e_update_index_and_alert { if test -z "$(find "$MAILDIR" -cnewer "$SYNC_STAMP" -a -type f)"; then echo "$(date) - No new messages, skipping alerting and indexing." else @@ -27,10 +26,10 @@ function mu4e_update_mail { fi } -function mail_sync_command { +function mu4e_sync_command { local flags='' test -z "$*" || flags="-f $@" - timeout $TIMEOUT eval "offlineimap $flags" + timeout $TIMEOUT zsh -c "offlineimap $flags" } function mu4e_update_index {