feat(cleaner): ✨ add command prune

this new command will be called by cron-like process to clean purge old logs and old mails. All files were formatted and mail_utils was renamed in utils since it now defines utility function not only for mail functions.
This commit is contained in:
2026-09-25 16:30:45 +02:00
parent 63c4d1387e
commit 02e85ddbfd
20 changed files with 471 additions and 164 deletions
+13 -1
View File
@@ -7,4 +7,16 @@ EWS_URL=https://mail.client.fr/EWS/Exchange.asmx # Default mail server
## Report email
N2_REPORT_RECIPIENTS=n2-support@client.fr
N2_REPORT_SUBJECT=[Logwatcher] Rapport erreurs N2
N2_REPORT_SUBJECT=[Logwatcher] Rapport erreurs N2
## Log retention
### number of days before archiving logs
LOG_RETENTION_DAYS=30
### number of days before deleting archive logs
ARCHIVED_LOG_RETENTION_DAYS=60
## Mail retention
### number of days before deleting mails
MAIL_RETENTION_DAYS=30