Daily Spam Digest is not delivered

This forum is for all copfilter version 2 support related questions in English. (IPCop version 2)
Post Reply
rock94
Posts: 5
Joined: 20 Aug 2012 21:45

Daily Spam Digest is not delivered

Post by rock94 »

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 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/*

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

Re: Daily Spam Digest is not delivered

Post by FischerM »

Hi!

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

Thanks!

Matthias

Post Reply