2019-09-16 09:06:54 +03:00
|
|
|
mail = {
|
2023-03-29 18:25:01 +03:00
|
|
|
-- version
|
|
|
|
version = 3,
|
2019-09-16 09:15:43 +03:00
|
|
|
|
2023-03-29 18:25:01 +03:00
|
|
|
-- mod storage
|
|
|
|
storage = minetest.get_mod_storage(),
|
|
|
|
|
|
|
|
-- ui theme prepend
|
|
|
|
theme = "",
|
|
|
|
|
|
|
|
-- ui forms
|
|
|
|
ui = {},
|
|
|
|
|
|
|
|
-- per-user ephemeral data
|
|
|
|
selected_idxs = {
|
|
|
|
inbox = {},
|
2023-06-04 03:03:14 +03:00
|
|
|
outbox = {},
|
2023-03-31 18:14:52 +03:00
|
|
|
drafts = {},
|
2023-06-15 20:28:04 +03:00
|
|
|
trash = {},
|
2023-10-16 21:32:06 +03:00
|
|
|
message = {},
|
2023-03-29 18:25:01 +03:00
|
|
|
contacts = {},
|
|
|
|
maillists = {},
|
|
|
|
to = {},
|
|
|
|
cc = {},
|
|
|
|
bcc = {},
|
2023-04-10 15:16:23 +03:00
|
|
|
boxtab = {},
|
|
|
|
sortfield = {},
|
2023-04-12 18:08:34 +03:00
|
|
|
sortdirection = {},
|
|
|
|
filter = {},
|
2023-05-05 12:38:19 +03:00
|
|
|
multipleselection = {},
|
|
|
|
optionstab = {},
|
2023-09-14 21:35:30 +03:00
|
|
|
settings_group = {},
|
2023-03-29 18:25:01 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
message_drafts = {}
|
2019-09-16 09:06:54 +03:00
|
|
|
}
|
|
|
|
|
2023-03-29 18:25:01 +03:00
|
|
|
if minetest.get_modpath("default") then
|
|
|
|
mail.theme = default.gui_bg .. default.gui_bg_img
|
|
|
|
end
|
2019-09-16 09:06:54 +03:00
|
|
|
|
2023-03-29 20:23:16 +03:00
|
|
|
-- sub files
|
2019-09-16 09:06:54 +03:00
|
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
2023-12-06 12:11:12 +03:00
|
|
|
dofile(MP .. "/util/init.lua")
|
2019-09-16 09:06:54 +03:00
|
|
|
dofile(MP .. "/chatcommands.lua")
|
|
|
|
dofile(MP .. "/migrate.lua")
|
|
|
|
dofile(MP .. "/hud.lua")
|
|
|
|
dofile(MP .. "/storage.lua")
|
|
|
|
dofile(MP .. "/api.lua")
|
|
|
|
dofile(MP .. "/gui.lua")
|
|
|
|
dofile(MP .. "/onjoin.lua")
|
2023-07-20 01:33:59 +03:00
|
|
|
-- sub directories
|
|
|
|
dofile(MP .. "/ui/init.lua")
|
2019-09-16 09:06:54 +03:00
|
|
|
|
|
|
|
-- migrate storage
|
|
|
|
mail.migrate()
|
2022-08-02 15:56:32 +03:00
|
|
|
|
|
|
|
if minetest.get_modpath("mtt") then
|
|
|
|
dofile(MP .. "/mtt.lua")
|
2023-03-29 18:25:01 +03:00
|
|
|
dofile(MP .. "/api.spec.lua")
|
|
|
|
dofile(MP .. "/migrate.spec.lua")
|
|
|
|
dofile(MP .. "/util/uuid.spec.lua")
|
|
|
|
dofile(MP .. "/util/normalize.spec.lua")
|
|
|
|
end
|