Page 1 of 1

Daily Digest

Posted: 23 Feb 2015 18:29
by oracle_sod
Hi,

So i have disabled the instant "{Spam not delivered}" email as it just generates the same amount of emails however, i want to enable the daily digest for all users by default, how would be the best way to do this (including new users) ?

Also, how can i set the daily digest to only send to a user if they have had spam messages for that day held back ? (don't want them getting an email every day if they didn't get any spam nor should it send for previous day spam) How can this be limited to "Spam" only and not "High Spam" ?

Im ok with PHP coding / SQL changes, so happy to make alterations where needed..

I did try to search the forums / net for answers but didn't have much luck

Re: Daily Digest

Posted: 23 Feb 2015 23:29
by shawniverson
So i have disabled the instant "{Spam not delivered}" email as it just generates the same amount of emails however, i want to enable the daily digest for all users by default, how would be the best way to do this (including new users) ?
viewtopic.php?t=868
Also, how can i set the daily digest to only send to a user if they have had spam messages for that day held back ? (don't want them getting an email every day if they didn't get any spam nor should it send for previous day spam) How can this be limited to "Spam" only and not "High Spam" ?
/var/www/html/mailscanner/conf.php

Code: Select all

define('QUARANTINE_REPORT_DAYS', 1);
/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_report.php

Code: Select all

WHERE
 a.quarantined = 1
AND
 ((to_address=%s) OR (to_domain=%s))
AND
 a.isspam>0
AND
 a.ishighspam = 0
(note that quarantine_report.php gets overwritten during mailwatch upgrades if it changes, so be prepared to reapply customizations)

:violin: