Globally reduce copyright headers
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / email.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("E-Mail Plugin Configuration"),
6         translate(
7                 "The email plugin creates a unix socket which can be used " ..
8                 "to transmit email-statistics to a running collectd daemon. " ..
9                 "This plugin is primarily intended to be used in conjunction " ..
10                 "with Mail::SpamAssasin::Plugin::Collectd but can be used in " ..
11                 "other ways as well."
12         ))
13
14 -- collectd_email config section
15 s = m:section( NamedSection, "collectd_email", "luci_statistics" )
16
17 -- collectd_email.enable
18 enable = s:option( Flag, "enable", translate("Enable this plugin") )
19 enable.default = 0
20
21 -- collectd_email.socketfile (SocketFile)
22 socketfile = s:option( Value, "SocketFile", translate("Socket file") )
23 socketfile.default = "/var/run/collect-email.sock"
24 socketfile:depends( "enable", 1 )
25
26 -- collectd_email.socketgroup (SocketGroup)
27 socketgroup = s:option( Value, "SocketGroup", translate("Socket group") )
28 socketgroup.default  = "nobody"
29 socketgroup.rmempty  = true
30 socketgroup.optional = true
31 socketgroup:depends( "enable", 1 )
32
33 -- collectd_email.socketperms (SocketPerms)
34 socketperms = s:option( Value, "SocketPerms", translate("Socket permissions") )
35 socketperms.default  = "0770"
36 socketperms.rmempty  = true
37 socketperms.optional = true
38 socketperms:depends( "enable", 1 )
39
40 -- collectd_email.maxconns (MaxConns)
41 maxconns = s:option( Value, "MaxConns", translate("Maximum allowed connections") )
42 maxconns.default   = 5
43 maxconns.isinteger = true
44 maxconns.rmempty   = true
45 maxconns.optional  = true
46 maxconns:depends( "enable", 1 )
47
48 return m