#!/bin/dash [ -d /var/lib/amavis/virusmails ] && { find /var/lib/amavis/virusmails/. -type f -name 'virus-*' -ctime +7 -delete find /var/lib/amavis/virusmails/. -type f -ctime +30 -delete } exit 0
Adjust to whatever you want, and tell cron to run it. If it removes crap you didn't want gone, it is your own fault. > For the record, there is no way I'd recommend enabling such a script by > default on anything but a first install of the package. And that's always > somewhat complicated to do cleanly, so IMO it would be far simpler and safer > to just ship it disabled, and announce the existence of the functionality in > NEWS.Debian. That still holds true. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org