This is a simple backend `telex` mod that takes care of encoding, storing, spooling and handling mail delivery for players. Everything is in StorageRef objects. The spool is global and contains undelivered msgs. Each user has an mbox. These can likely grow out of bounds and may need size checking to prevent corruption. The Terminal mod provides the UI. a `telex` command exists and it has subcommands for send/read/list and working with drafts. The draft is stored in the player StorageRef and is persistent. This makes editing and sending messages to more people doable, and you can re-edit your message later. There is no SENT folder or anything like it. There is no REPLY subcommand, but I do intend to include it. Messages do NOT get delivered to offline players. Those remain in the spool for 3 days. If the player does not log on, the mail is RETURNED UNDELIVERABLE. If the returning does not succeed within 30 days, the message is DROPPED.
25 lines
497 B
Lua
25 lines
497 B
Lua
unused_args = false
|
|
allow_defined_top = true
|
|
max_line_length = 130
|
|
|
|
read_globals = {
|
|
"DIR_DELIM",
|
|
"core",
|
|
"dump",
|
|
"VoxelManip", "VoxelArea",
|
|
"PseudoRandom", "ItemStack",
|
|
"SecureRandom",
|
|
table = { fields = { "copy" } },
|
|
string = { fields = { "split" } },
|
|
"unpack",
|
|
"AreaStore",
|
|
"ranks",
|
|
"irc"
|
|
}
|
|
|
|
globals = {
|
|
"players", "db", "boxes", "mech", "doors", "fences", "screwdriver", "walls", "frame", "sfinv", "creative", "music", "skybox", "sounds", "conf", "log",
|
|
"vector", "minetest",
|
|
}
|
|
|