* Mon Dec 30 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.1-3.sme

- move action pseudonym-cleanup and migrate 10AdminEmail to smeserver-email [SME: 12808]
This commit is contained in:
2024-12-30 22:09:57 -05:00
parent 0f13af540f
commit f373a70d99
4 changed files with 5 additions and 58 deletions

View File

@@ -1,24 +0,0 @@
{
my $conf = esmith::ConfigDB->open;
return unless $conf;
my $admin_email = $conf->get_value_and_delete('AdminEmail');
return unless defined $admin_email;
my $admin = $DB->get('admin') ||
$DB->new_record('admin', {type => 'system'});
if ($admin_email)
{
$admin->merge_props(
EmailForward => 'forward',
ForwardAddress => $admin_email,
);
}
else
{
$admin->merge_props(
EmailForward => 'local',
ForwardAddress => '',
);
}
}