There's a units parameter along with the size. My man page doesn't 
indicate a default value. I'd try:
-size 0c

On 12/17/2013 03:36 AM, emailitis.com wrote:
> Hi Gary,
>
> I love your easy to execute scripts, thank you.
>
> I would like to delete any files that are 0 bytes in size AND are over 3
> days old.  I tried to be clever:
>
> find /var/qmail/graylist/beadonbrook.com/. -type f -size 0 -mtime +3 –print
>
> (missed out the –delete until I had checked, luckily as it happens).
>
> but that lists all those that are greater than 3 days and ignores the
> “-size 0” in there.
>
> Can you help with how best to do that?
>
> Kind Regards,
>
> Christoph
>
> *From:*[email protected]
> [mailto:[email protected]]
> *On Behalf Of *Gary Gendel
> *Sent:* 23 November 2013 02:09
> *To:* spamdyke users
> *Subject:* Re: [spamdyke-users] 0byte graylist entries
>
> My graylists do get constantly pruned but others seem to have old ones
> remaining.  Then again, my graylist-max-secs is set to 1296000 (one day)
> which is probably shorter than most.
>
> On 11/22/13, 8:15 PM, BC wrote:
>
>
>     Interesting.  I've been doing it this way - should I stop?
>
>     # time to delete old, empty graylist entries older than 15 days
>     (empty files & empty directories)
>
>     find /var/qmail/antispam/graylist/ -type f -mtime +15 -print -delete
>
>     find /var/qmail/antispam/graylist/ -empty -type d -mtime +15 -print
>     -delete
>
>     I run these in that order.
>
>     Seems to do as I ask...
>
>     On 11/22/2013 10:09 AM, Eric Shubert wrote:
>
>         On 11/19/2013 04:46 AM, Gary Gendel wrote:
>
>             Spamdyke does clean up these files periodically (as set by
>
>             graylist-max-secs)
>
>         I don't believe this is entirely true. Spamdyke will honor/see these
>
>         expirations only if/when another email is sent after this time has
>
>         elapsed, in which case the graylist process starts anew. Over time,
>
>         un-resent records accumulate, which can take its toll on inodes.
>
>
>
>         This is why I wrote the qtp-prune-graylist script:
>
>         http://qtp.qmailtoaster.com/trac/browser/bin/qtp-prune-graylist
>
>         :)
>
>
>
>         Come to think of it, I should package that script with the spamdyke 
> rpm.
>
>         Oh, I should mention that you can find rpms for spamdyke at
>
>         http://mirrors.qmailtoaster.com/. They're presently in the /testing
>
>         directory, and will migrate to /current (stable) once everything's 
> been
>
>         tested. The spamdyke package should already be solid though. Very soon
>
>         you'll be able to use yum to install it as well, once the
>
>         qmailtoaster-release package (containing the yum repo stuff for QMT) 
> is
>
>         available.
>
>
>
>
>
>         Note for posterity: the qtp web site is being migrated/integrated with
>
>         the QMailToaster organization at 
> GitHub:https://github.com/QMailToaster
>
>         Look for this script there if the qtp.qmailtoaster.com site is gone. 
> It
>
>         might be in the spamdyke package there. :)
>
>
>
>
>
>
>
>
>
>     _______________________________________________
>
>     spamdyke-users mailing list
>
>     [email protected]  <mailto:[email protected]>
>
>     http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>
>
>
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>


-- 
-Eric 'shubes'

_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to