feat(mail) : Makefile — target mail-sync avec options FOLDER et DRYRUN
This commit is contained in:
6
makefile
6
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
|
||||
|
||||
Reference in New Issue
Block a user