|
|
@ -123,6 +123,9 @@ foreach my $u (@delete){ |
|
|
|
} |
|
|
|
} |
|
|
|
my $archive = $user->prop('ExpireArchiveBeforeDelete') || 'yes'; |
|
|
|
my $archive = $user->prop('ExpireArchiveBeforeDelete') || 'yes'; |
|
|
|
if ( $archive =~ m/^yes|enabled|1|on$/ ){ |
|
|
|
if ( $archive =~ m/^yes|enabled|1|on$/ ){ |
|
|
|
|
|
|
|
# Suspend email delivery, prevent tar ending with exit code 1 |
|
|
|
|
|
|
|
# because Maildir changed during archive |
|
|
|
|
|
|
|
system('chmod', '+t', getpwnam($u)->dir) |
|
|
|
my $tar = $archive_path . '/' . $u . '-' . $now->ymd . '.tar.' . $archive_ext; |
|
|
|
my $tar = $archive_path . '/' . $u . '-' . $now->ymd . '.tar.' . $archive_ext; |
|
|
|
my $res = system( |
|
|
|
my $res = system( |
|
|
|
'tar', |
|
|
|
'tar', |
|
|
|