initial commit of file from CVS for smeserver-dovecot on Thu 26 Oct 11:25:44 BST 2023
This commit is contained in:
23
root/etc/e-smith/db/configuration/migrate/PopMemLimit
Normal file
23
root/etc/e-smith/db/configuration/migrate/PopMemLimit
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
|
||||
# This limit is renamed after ProcessMemoryLimit for consistency with imap entry
|
||||
foreach my $prop (qw/MemLimit/){
|
||||
my $pop_value = $DB->get_prop_and_delete('pop3', $prop);
|
||||
next unless ($pop_value);
|
||||
my $curpop_value = $DB->get_prop('pop3', 'ProcessMemoryLimit');
|
||||
next if ($curpop_value);
|
||||
$DB->set_prop('pop3', 'ProcessMemoryLimit', $pop_value);
|
||||
}
|
||||
|
||||
# Those limits are now defined on the pop entry
|
||||
foreach my $prop (qw/MemLimit/){
|
||||
my $pops_value = $DB->get_prop_and_delete('pop3s', $prop);
|
||||
next unless ($pops_value);
|
||||
my $pop_value = $DB->get_prop('pop3', 'ProcessMemoryLimit');
|
||||
next if ($pop_value);
|
||||
$DB->set_prop('pop3', 'ProcessMemoryLimit' , $imaps_value);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user