Add a template fragment to enable the auto-reply

tags/smeserver-expire-accounts-0.1.7-1
Daniel Berteaud 9 years ago
parent 2ca569a4fa
commit a9ab4ee9a4
  1. 15
      root/etc/e-smith/templates-user/.qmail/20ExpireAutoReply

@ -0,0 +1,15 @@
{
use User::pwent;
my $pwd = $props{'PasswordSet'} || 'no';
my $locked = $props{'ExpireLockedOn'} || '';
my $reply = $props{'ExpireAutoReply'} || 'enabled';
if ($pwd eq 'yes' || $locked !~ m/^\d{4}\-\d{1,2}\-\d{1,2}$/ || $reply =~ m/^enabled|yes|on|1$/){
return ""
}
$OUT .= "| /usr/bin/qmail-autoresponder " getpwnam($USERNAME)->dir . "/.lock-auto-reply\n";
}
Loading…
Cancel
Save