mu4e syncing into two commands.

This commit is contained in:
Ivan Malison 2014-12-31 12:51:03 -05:00
parent c4e45ba0e3
commit 7df5a4e269

View File

@ -17,8 +17,7 @@ function mu4e_alert_for_filename {
-appIcon $APP_ICON -appIcon $APP_ICON
} }
function mu4e_update_mail { function mu4e_update_index_and_alert {
# mail_sync_command "$@"
if test -z "$(find "$MAILDIR" -cnewer "$SYNC_STAMP" -a -type f)"; then if test -z "$(find "$MAILDIR" -cnewer "$SYNC_STAMP" -a -type f)"; then
echo "$(date) - No new messages, skipping alerting and indexing." echo "$(date) - No new messages, skipping alerting and indexing."
else else
@ -27,10 +26,10 @@ function mu4e_update_mail {
fi fi
} }
function mail_sync_command { function mu4e_sync_command {
local flags='' local flags=''
test -z "$*" || flags="-f $@" test -z "$*" || flags="-f $@"
timeout $TIMEOUT eval "offlineimap $flags" timeout $TIMEOUT zsh -c "offlineimap $flags"
} }
function mu4e_update_index { function mu4e_update_index {