Customize quarantine report

Questions and answers about how to do stuff
Post Reply
akl
Posts: 20
Joined: 04 Mar 2016 18:26

Customize quarantine report

Post by akl »

Hi All,

can someone tell me where to find the template for the weekly quarantine Report?
I want to customize that.

Does anyone know wether it is possible to create the Report on a daily Basis?

Thanks in advance
akl
akl
Posts: 20
Joined: 04 Mar 2016 18:26

Re: Customize quarantine report

Post by akl »

ok, maybe my "call for help" was a Little quick, but maybe somebody is interested too.
I found out, that the quarantine report is most likely created by the script /usr/local/bin/mailwatch/Tools/Cron_jobs/quarantine_report.php

What I don't understand is, that this script is executed by /etc/cron.daily/mailwatch

#!/bin/bash
/usr/local/bin/mailwatch/tools/Cron_jobs/db_clean.php >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php --clean >> /dev/null 2>&1
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php >> /dev/null 2>&1

Doesnt that mean it is already a daily task?

I don'nt know any php....I wonder where the $required_constant array is passed to quarantine_report.php
I am interested in the QUARANTINE_REPORT_DAYS variable....

Also, what I don't understand is the part
In the last %s day(s) you have received %s e-mails that have

I understand %s as a variable. It is referenced as days and the amount of mails received....?
Shouldnt that read somewhat %s days you have received %m Mails....

Time to buy a PHP-book?

Cheers
akl
Post Reply