diff --git a/root/etc/e-smith/templates/etc/cron.d/sogo/autoreply b/root/etc/e-smith/templates/etc/cron.d/sogo/autoreply index 6617f02..2360ca1 100644 --- a/root/etc/e-smith/templates/etc/cron.d/sogo/autoreply +++ b/root/etc/e-smith/templates/etc/cron.d/sogo/autoreply @@ -1 +1,5 @@ -0 0 * * * sogo /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds +{ + my $version = qx(/bin/rpm -q --qf "%{version}" sogo-tool); + my $cmd = ($version =~ m/^2/) ? 'expire-autoreply' : 'update-autoreply'; + $OUT = "0 0 * * * sogo /usr/sbin/sogo-tool $cmd -p /etc/sogo/sieve.creds"; +}