Daily Digest

Questions and answers about how to do stuff
Post Reply
oracle_sod
Posts: 1
Joined: 23 Feb 2015 18:06

Daily Digest

Post 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
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Daily Digest

Post 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:
Post Reply