2019-09-16 08:06:54 +02:00
|
|
|
mail = {
|
2023-03-29 17:25:01 +02:00
|
|
|
-- version
|
|
|
|
version = 3,
|
2019-09-16 08:15:43 +02:00
|
|
|
|
2023-03-29 17:25:01 +02: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 02:03:14 +02:00
|
|
|
outbox = {},
|
2023-03-31 17:14:52 +02:00
|
|
|
drafts = {},
|
2023-06-15 19:28:04 +02:00
|
|
|
trash = {},
|
2023-10-16 20:32:06 +02:00
|
|
|
message = {},
|
2023-03-29 17:25:01 +02:00
|
|
|
contacts = {},
|
|
|
|
maillists = {},
|
|
|
|
to = {},
|
|
|
|
cc = {},
|
|
|
|
bcc = {},
|
2023-04-10 15:16:23 +03:00
|
|
|
boxtab = {},
|
|
|
|
sortfield = {},
|
2023-04-12 17:08:34 +02:00
|
|
|
sortdirection = {},
|
|
|
|
filter = {},
|
2023-05-05 11:38:19 +02:00
|
|
|
multipleselection = {},
|
|
|
|
optionstab = {},
|
2023-09-14 20:35:30 +02:00
|
|
|
settings_group = {},
|
2024-04-06 12:00:30 +02:00
|
|
|
contributor_grouping = {},
|
2023-03-29 17:25:01 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
message_drafts = {}
|
2019-09-16 08:06:54 +02:00
|
|
|
}
|
|
|
|
|
2023-03-29 17:25:01 +02:00
|
|
|
if minetest.get_modpath("default") then
|
|
|
|
mail.theme = default.gui_bg .. default.gui_bg_img
|
|
|
|
end
|
2019-09-16 08:06:54 +02:00
|
|
|
|
2023-03-29 19:23:16 +02:00
|
|
|
-- sub files
|
2019-09-16 08:06:54 +02:00
|
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
2023-12-06 10:11:12 +01:00
|
|
|
dofile(MP .. "/util/init.lua")
|
2019-09-16 08:06:54 +02: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")
|
2024-02-01 20:46:26 +01:00
|
|
|
dofile(MP .. "/player_recipients.lua")
|
2023-07-20 00:33:59 +02:00
|
|
|
-- sub directories
|
|
|
|
dofile(MP .. "/ui/init.lua")
|
2019-09-16 08:06:54 +02:00
|
|
|
|
|
|
|
-- migrate storage
|
|
|
|
mail.migrate()
|
2022-08-02 14:56:32 +02:00
|
|
|
|
|
|
|
if minetest.get_modpath("mtt") then
|
|
|
|
dofile(MP .. "/mtt.lua")
|
2023-03-29 17:25:01 +02:00
|
|
|
dofile(MP .. "/api.spec.lua")
|
|
|
|
dofile(MP .. "/migrate.spec.lua")
|
|
|
|
dofile(MP .. "/util/uuid.spec.lua")
|
|
|
|
dofile(MP .. "/util/normalize.spec.lua")
|
|
|
|
end
|