From d272b3c8e0f1ddca8f6de0e5aef78be75a775d6b Mon Sep 17 00:00:00 2001 From: hoelee Date: Wed, 6 May 2026 09:00:00 +0800 Subject: [PATCH] chore(shell-sync): Makefile scaffolding --- platform/shell-sync/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/platform/shell-sync/Makefile b/platform/shell-sync/Makefile index 664f01f6..cf17e141 100644 --- a/platform/shell-sync/Makefile +++ b/platform/shell-sync/Makefile @@ -55,3 +55,19 @@ sync: fi docker compose exec imapsync sync.sh sync $(ACCOUNT) +# Force a full batch now (all configured accounts) +sync-all: + docker compose exec imapsync sync.sh sync-all + +# Enter container shell +shell: + docker compose exec imapsync sync.sh shell + +# Clean up +clean: + docker compose down -v + rm -rf logs/*.log logs/*.last_* logs/.heartbeat logs/.notification_failed + +# One-shot sync (build, run once, exit) +once: + ONCE=true docker compose up --build --abort-on-container-exit