e-smith-email/root/etc/e-smith/db/configuration/migrate/35enableImap

11 lines
252 B
Plaintext
Raw Permalink Normal View History

{
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');
}