Weekly Spam Report - spanreport-verbose.tt

Jun 17, 2022
30
2
13
Hi,
in the /var/lib/pmg/templates/spanreport-verbose.tt is a switch for daily and weekly reports
Code:
[%- IF timespan == 'week' -%]
[%- SET title : “Weeky Spam Report for '${pmail}' - ${date}'" -%]
[%- ELSE %]
[%- SET title : “Daily Spam Report for '${pmail}' - $   {date}" -%]
[%- END -%]
how can i change the system from daily to weekly reports?
 
thanks, both files are commented with #

systemctl edit pmgspamreport.service

What should i change, only one new entry in line 4?
Code:
ExecStart=/usr/bin/pmgqm send --timespan week

systemctl edit pmgspamreport.timer

Here is the setting # OnCalender=00:05

This time is okay but the reports should be send only on monday morning at 00:05

Is the [/icode]--timespan week[/icode] correct to report the lastweek from monday 00:00:00 to sunday 23:59:59?