diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index b4c15de7..f263ccc5 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -323,3 +323,7 @@ sync_all() { send_notification "IMAP sync batch failed" "Sync failed for account(s) $failed_accounts at $(date '+%Y-%m-%d %H:%M:%S'). Check ${LOG_DIR}/accountN.log for details." || notification_failures=1 fi + log "=== Sync cycle complete (success: ${successes:-none}; failed: ${failed_accounts:-none}) ===" + [ "$failures" -eq 0 ] && [ "$notification_failures" -eq 0 ] +} +