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:
+13
-1
@@ -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
|
||||
Reference in New Issue
Block a user