Athozus
a2b74be394
Use builtin split func in storage.lua
2023-03-29 14:49:01 +02:00
Athozus
a2930517da
Better compatibility for messages storage
...
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-03-29 14:49:00 +02:00
Athozus
425ad39547
Better syntax in storage.lua
2023-03-29 14:48:59 +02:00
Athozus
8a4290849f
Fix mtt crash
2023-03-29 14:48:59 +02:00
Athozus
40381c1175
Add message check
2023-03-29 14:48:59 +02:00
Athozus
88d8f8fe3e
Better log messages
2023-03-29 14:48:59 +02:00
Athozus
41aa75d8fe
Fix many issues related to maillists
...
Notably : edit, delete, selection, creation, registration of players
2023-03-29 14:48:57 +02:00
Athozus
7247e6bb5c
Fix selected indexes for inbox/sent
...
Now separated, fixed show_message() func selection of id from table dcl/read btn
2023-03-29 14:48:57 +02:00
Athozus
1412f0e3e0
Avoid multiples occurences of the same messages due to player both in maillist and receivers
2023-03-29 14:48:56 +02:00
Athozus
c9635d7190
Fix repetition of code causing a crash
2023-03-29 14:48:56 +02:00
Athozus
2443cc5dec
Add ability to use maillist in messages and receive messages from them
2023-03-29 14:48:56 +02:00
Athozus
698e8617c7
Add ability to choose default status (to/cc/bcc)
...
Signed-off-by: Athozus <athozus@gmail.com>
2023-03-29 14:48:55 +02:00
Athozus
6453c56def
Rework on editing/deletion of contacts/maillists
2023-03-29 14:48:54 +02:00
Athozus
09a156cfe8
Add ability to create mail lists
2023-03-29 14:48:54 +02:00
Athozus
fd9b579c5f
Add deleting contact
2023-03-29 14:48:53 +02:00
Athozus
addc9eb9bc
Use global contacts functions and reconfigure add/remove functions
2023-03-29 14:48:53 +02:00
Athozus
b5285fbff1
Show every message received/sent via specific functions
2023-03-29 14:48:52 +02:00
Athozus
3dd820a16b
Fix messages loading
2023-03-29 14:48:52 +02:00
Athozus
1441c28ccf
Mark read/unread/delete a message
2023-03-29 14:48:52 +02:00
Athozus
7ede5864be
Add automatic generation of status for a new message (unread)
2023-03-29 14:48:52 +02:00
Athozus
128b209067
Receive player messages from global storage
2023-03-29 14:48:51 +02:00
Athozus
0d69f0242b
Add insertion of messages into global storage mail.messages.json
2023-03-29 14:48:51 +02:00
BuckarooBanzay
d1254a7c5b
check messages for missing time field
2022-08-06 20:23:35 +02:00
BuckarooBanzay
3327be9bf4
consistent function syntax
2022-08-02 14:58:42 +02:00
BuckarooBanzay
4b496a1e61
order received mails by date descending
...
fixes #21
2022-08-02 14:49:22 +02:00
BuckarooBanzay
51e80c6d9d
satisfy luacheck
2020-10-13 19:20:18 +02:00
Peter Nerlich
93d1af947c
always sort contacts alphabetically
...
- introduce pairsByKeys() (from http://www.lua.org/pil/19.3.html but adding current index and total length as iterator return values)
- use pairsByKeys() everywhere, where contacts are iterated over (for now only when displaying in gui.lua) so the order stays the same although the structure is a hashmap
- correctly update selected position when adding/removing contacts to TO/CC/BCC fields
- remove print statements in storage.lua
2020-08-15 13:52:26 +02:00
Peter Nerlich
f82c3d2b82
add contacts dir, leave mail files as is
...
- restructured storage.lua so reading/writing json is not duplicated
- when a player joins and has no contacts file yet, automatically add all players he wrote to
2020-08-10 18:29:11 +02:00
NatureFreshMilk
ca88374fbd
separated from webmail mod
2019-09-16 08:06:54 +02:00