From 9b40dc1c9314dd393107841a2f1cd22cde22c36d Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 3 Jul 2026 09:00:00 +0800 Subject: [PATCH] feat(shell-sync): sync_all() part 3/3 --- platform/shell-sync/sync.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 ] +} +