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 = {},
|
|
|
|
sent = {},
|
2023-03-31 18:14:52 +03:00
|
|
|
drafts = {},
|
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 = {},
|
|
|
|
multipleselection = {}
|
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())
|
2020-07-31 13:36:28 +03:00
|
|
|
dofile(MP .. "/util/normalize.lua")
|
2023-03-29 18:25:01 +03:00
|
|
|
dofile(MP .. "/util/uuid.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-03-29 18:25:01 +03:00
|
|
|
dofile(MP .. "/ui/mail.lua")
|
|
|
|
dofile(MP .. "/ui/inbox.lua")
|
|
|
|
dofile(MP .. "/ui/outbox.lua")
|
2023-03-31 18:14:52 +03:00
|
|
|
dofile(MP .. "/ui/drafts.lua")
|
2023-03-29 18:25:01 +03:00
|
|
|
dofile(MP .. "/ui/message.lua")
|
|
|
|
dofile(MP .. "/ui/events.lua")
|
|
|
|
dofile(MP .. "/ui/contacts.lua")
|
|
|
|
dofile(MP .. "/ui/edit_contact.lua")
|
|
|
|
dofile(MP .. "/ui/select_contact.lua")
|
|
|
|
dofile(MP .. "/ui/maillists.lua")
|
|
|
|
dofile(MP .. "/ui/edit_maillists.lua")
|
|
|
|
dofile(MP .. "/ui/compose.lua")
|
|
|
|
dofile(MP .. "/ui/about.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
|