Daily Spam Digest is not delivered

This forum is for all copfilter version 2 support related questions in English. (IPCop version 2)

Daily Spam Digest is not delivered

Postby rock94 » 22 Aug 2012 17:00

The daily spam digest is a small but useful piece of functionality that worked in Copfilter V1 but appears broken in IPCop 2.0.4 with Copfilter 2.0.91beta3.

Searching on this forum I found a mention and solution to this problem in the German language section at http://www.copfilter.org/forum/viewtopic.php?f=10&t=777&p=3945&hilit=digest#p3945. Making the suggested changes to the shell script /var/log/copfilter/default/opt/tools/bin/spam_mail_daily_digest.sh appears to restore the functionality.

Code: Select all
<     SUBJECT=`cat $EMAIL |sed -n '1,/^$/p' |grep -i "Subject:" -m 1`
---
>     SUBJECT=`cat $EMAIL |sed -n '1,/^$/p' |grep -i "^Subject:" -m 1`
58c61,65
< test -f /var/log/copfilter/default/opt/tmp/spam_digest.* || rm /var/log/copfilter/default/opt/tmp/*not* && exit 0
---
> # test -f /var/log/copfilter/default/opt/tmp/spam_digest.* || rm /var/log/copfilter/default/opt/tmp/*not* && exit 0
> if [ $(ls /var/log/copfilter/2.0.91beta3/opt/tmp/ | grep spam_digest.* | wc -w) = 0 ]; then
> rm /var/log/copfilter/default/opt/tmp/*not*
> exit 0
> fi
60c67
< for ii in `ls /var/log/copfilter/default/opt/tmp/spam_digest.* &>/dev/null`
---
> for ii in `ls /var/log/copfilter/default/opt/tmp/spam_digest.*`
91,94c98,102
< rm -f /var/log/copfilter/default/opt/tmp/spam_digest*
< rm -f $TMP_FILE1
< rm $NOTIF
< rm $NONOTIF
---
> # rm -f /var/log/copfilter/default/opt/tmp/spam_digest*
> # rm -f $TMP_FILE1
> # rm $NOTIF
> # rm $NONOTIF
> rm -f /var/log/copfilter/default/opt/tmp/*
rock94
 
Posts: 5
Joined: 20 Aug 2012 21:45

Re: Daily Spam Digest is not delivered

Postby FischerM » 23 Aug 2012 10:50

Hi!

Thats what I needed - fix will be added to WIKi...

Thanks!

Matthias
FischerM
Site Admin
 
Posts: 544
Joined: 09 Dec 2009 19:24
Location: Rheinbach


Return to English Copfilter v2 Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron