diff --git a/ipasserelle-base.spec b/ipasserelle-base.spec index 2997ade..2e6fac1 100644 --- a/ipasserelle-base.spec +++ b/ipasserelle-base.spec @@ -1,4 +1,4 @@ -%define version 0.2.54 +%define version 0.2.55 %define release 1 %define name ipasserelle-base @@ -49,12 +49,15 @@ Based on SMEServer, iPasserelle is a specially configured SME Server, with some additionnal modules %changelog -* Wed Apr 13 2016 Daniel Berteaud 0.2.54-1 +* Wed Apr 13 2016 Daniel Berteaud 0.2.55-1 - Remove S-A custom scores - Add MailSpike BL - Requires smeserver-expire-accounts - Add spamassassin autolear param +* Wed Dec 23 2015 Daniel Berteaud 0.2.54-1 +- Fix home RecycleBin purge by using mtime instead of atime + * Fri Dec 4 2015 Daniel Berteaud 0.2.53-1 - Define netfs service in the DB diff --git a/root/etc/cron.daily/purge-homes-recycle b/root/etc/cron.daily/purge-homes-recycle index ee6c992..8d25df0 100644 --- a/root/etc/cron.daily/purge-homes-recycle +++ b/root/etc/cron.daily/purge-homes-recycle @@ -46,8 +46,8 @@ foreach my $user ($a->get_all_by_prop(type=>'user')){ sub remove{ # Remove files with last modification older than $retention if ( -f ){ - my $atime = stat($_)->atime; - (time() - $atime > $retention) && unlink($_); + my $mtime = stat($_)->mtime; + (time() - $mtime > $retention) && unlink($_); } # Remove empty directories elsif ( -d ){