initial commit of file from CVS for e-smith-email on Wed 12 Jul 08:53:55 BST 2023
This commit is contained in:
10
root/etc/e-smith/db/configuration/migrate/35enableImap
Normal file
10
root/etc/e-smith/db/configuration/migrate/35enableImap
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
|
||||
my $imap = $DB->get('imap') ||
|
||||
$DB->new_record('imap', {type => 'service'});
|
||||
my $status = $imap->prop('status') || 'disabled';
|
||||
return "" if ($status eq 'enabled');
|
||||
$imap->set_prop('status', 'enabled');
|
||||
$imap->set_prop('access', 'localhost');
|
||||
|
||||
}
|
Reference in New Issue
Block a user