dovecot-controller.lua 644 Bytes
Newer Older
1
local mymodule = {}
2

3
mymodule.default_action = "status"
4

5
function mymodule.status(self)
6 7 8
	return self.model.getstatus()
end

9
function mymodule.startstop(self)
10
	return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
11 12
end

13
function mymodule.details(self)
14 15 16
	return self.model.getstatusdetails()
end

17
function mymodule.expert(self)
18
	return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Dovecot Config", "Configuration Set")
19
end
20

21
function mymodule.logfile(self)
22
	return self.model.get_logfile(self, self.clientdata)
23 24
end

25
return mymodule