From 0028b489e423570b6ecd0595121705193b53852c Mon Sep 17 00:00:00 2001 From: matthieu Date: Tue, 19 May 2026 23:39:21 +0200 Subject: [PATCH] =?UTF-8?q?feat(mail)=20:=20Makefile=20=E2=80=94=20target?= =?UTF-8?q?=20mail-sync=20avec=20options=20FOLDER=20et=20DRYRUN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile b/makefile index 16c8944..af6184b 100644 --- a/makefile +++ b/makefile @@ -122,5 +122,11 @@ php-cs-fixer-allow-risky: test: $(EXEC_PHP) php -d memory_limit="512M" vendor/bin/phpunit $(FILES) +## Synchronise la boîte mail IMAP vers la base locale (cron OS toutes les 10 min) +## Passer FOLDER=INBOX pour cibler un seul dossier. Ex: make mail-sync FOLDER=INBOX +## Passer DRYRUN=1 pour simuler sans écrire. Ex: make mail-sync DRYRUN=1 +mail-sync: + $(SYMFONY_CONSOLE) app:mail:sync $(if $(FOLDER),--folder=$(FOLDER),) $(if $(DRYRUN),--dry-run,) + wait: sleep 10