Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-12-06 Thread Nelson A. de Oliveira
Hi Thomas! These 2 lines seems to solve both cases: find ${greylistDir} -type f -mtime +${GREYLISTEXPIREDAYS} -delete find ${greylistDir} -type d -empty -delete I've sent to you a tarball with examples (I am not including it on the bug report to protect the e-mail addresses). With

Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-12-06 Thread Nelson A. de Oliveira
There is a bonus too: we won't need the loops in /etc/cron.daily/tumgreyspf since find nicely removes all the empty dirs for us. Example: $ mkdir -p a/b/c/d/e/f $ find a a a/b a/b/c a/b/c/d a/b/c/d/e a/b/c/d/e/f $ find a -mindepth 1 -type d -empty -delete $ find a a And just one minor fix is

Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-12-06 Thread Nelson A. de Oliveira
Attached is the crontab that I would use, fixing #694819. This will also fix #673386 and #610322. From my tests it's good but I would like to have somebody else reviewing it too :-) Best regards, Nelson #!/bin/sh if [ -f /etc/tumgreyspf/default.conf ] ; then GREYLISTEXPIREDAYS=`grep -E

Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-12-05 Thread Nelson A. de Oliveira
Hi Thomas! On Sat, Dec 1, 2012 at 11:46 AM, Thomas Goirand z...@debian.org wrote: Could you try to write a version of the script that would work on your system? We can later check the value of greylistByIPOnly, and have 2 types of clean, depending on that value. I am very busy this week but I

Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-12-01 Thread Thomas Goirand
On 12/01/2012 02:12 AM, Nelson A. de Oliveira wrote: Package: tumgreyspf Version: 1.35-7 Severity: normal Hi! Using greylistByIPOnly = 0 I saw that the expired entries aren't removed after GREYLISTEXPIREDAYS. From /etc/cron.daily/tumgreyspf it's possible to see, for example: =

Bug#694819: tumgreyspf: Cron file doesn't remove expired entries with greylistByIPOnly = 0

2012-11-30 Thread Nelson A. de Oliveira
Package: tumgreyspf Version: 1.35-7 Severity: normal Hi! Using greylistByIPOnly = 0 I saw that the expired entries aren't removed after GREYLISTEXPIREDAYS. From /etc/cron.daily/tumgreyspf it's possible to see, for example: = + [ -f /etc/tumgreyspf/default.conf ] + grep GREYLISTEXPIREDAYS