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