BuckarooBanzay
a690fc721d
contacts refactoring
2023-03-29 14:49:09 +02:00
BuckarooBanzay
1a0f0d02ff
refactor ui components
2023-03-29 14:49:07 +02:00
BuckarooBanzay
9b2883030a
storage format docs
2023-03-29 14:49:07 +02:00
BuckarooBanzay
894e5df4b1
storage rewrite wip
2023-03-29 14:49:07 +02:00
Athozus
e08238f50e
Check maillists not added in contacts
2023-03-29 14:49:06 +02:00
Athozus
4b2a943799
Do not add maillist as a new contact when sending a mail
2023-03-29 14:49:06 +02:00
Athozus
c4dd235782
Significantly improve maillist behaviour
...
Replace maillist by its players when sending a message
List of players separated by ,
Avoid doublons when editing more than 2 times a maillist
2023-03-29 14:49:05 +02:00
Athozus
6b3a7c514b
Whitespace line in gui.lua
2023-03-29 14:49:04 +02:00
Athozus
c0c3692c2b
Fix luacheck warnings in gui.lua
2023-03-29 14:49:03 +02:00
Athozus
a2b74be394
Use builtin split func in storage.lua
2023-03-29 14:49:01 +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
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
2656936a6f
Add at symbol as prefix on maillists view
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
770b7b69cb
Fix inability to edit contact
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
178a101618
Create mail lists formspec based on contacts
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
0d69f0242b
Add insertion of messages into global storage mail.messages.json
2023-03-29 14:48:51 +02:00
Athozus
17b5f94fed
Show date time ( #27 )
...
* Show date in message reading
* Fix wrong registered dates
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Rework header layout to add better space for date
---------
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-03-29 14:48:38 +02:00
Athozus
e73d11b8bd
Resize messages table to be aligned with close button at the bottom
2023-03-29 14:47:04 +02:00
Athozus
dd145e621a
Remove index variable verification on mark read/unread buttons since they are necessarily clicked on inbox view
2023-03-29 14:46:59 +02:00
Athozus
61d70e427e
Add variable to keep the previous tab instead of going back to the first one
2023-03-29 14:46:26 +02:00
Athozus
92a7c71d7f
Remove comment on selected_idxs test (show_sent)
2023-03-29 14:40:21 +02:00
Athozus
f58af625c5
Add show_sent function and show sent messages
2023-03-29 14:40:05 +02:00
Athozus
2d10355a20
Add tabheader & sent formspec
2023-03-29 14:39:45 +02:00
flux
f7a7ef361a
use canonical_name if it is available; report error when trying to send mail to non-existent players
2023-02-23 13:41:41 -08:00
fluxionary
43bf5b9a6f
don't forget which message was selected ( #25 )
2022-11-21 18:30:52 +01:00
fluxionary
8062173a5a
fix unified inventory integration ( #23 )
2022-09-23 21:26:36 -04:00
Dennis Jenkins
d9771ded2a
Fixes https://github.com/EdenLostMinetest/edenlost/issues/8
2022-01-20 12:48:25 +01:00
BuckarooBanzay
390c431b96
readonly received msg view
...
fixes #15
2022-01-07 13:19:05 +01:00
Buckaroo Banzai
6537d205d4
add some nil-checks to edit form callback
...
fixes #9
2020-10-23 12:54:29 +02:00
BuckarooBanzay
51e80c6d9d
satisfy luacheck
2020-10-13 19:20:18 +02:00
BuckarooBanzay
63521f5e85
check fields of forwarded mail
...
fixes https://github.com/pandorabox-io/pandorabox.io/issues/556
2020-10-13 19:15:58 +02:00
Peter Nerlich
f35b62649b
recipient selection: indicate what is TO and what is CC
2020-08-15 14:53:59 +02:00
Peter Nerlich
0d937711aa
fix mail.ensure_new_format() (had lead to wrong TO field when using Reply All), remove player from CC when using Reply All
2020-08-15 14:44:25 +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
39f47437b6
migration fixes
2020-08-12 12:23:46 +02:00
Peter Nerlich
106e94eee7
Merge branch 'cc-bcc' into contacts
2020-08-12 12:23:12 +02:00
Peter Nerlich
8beec340d3
revert renaming "sender" to "from" to maintain backwards compatibility
2020-08-12 12:05:12 +02:00
Peter Nerlich
756b951d91
add working contact selection dialog
2020-08-12 11:20:48 +02:00
Peter Nerlich
b60cd978b9
add GUI to manage contacts
...
- show hint when trying to save an illegal contact (empty name or collision)
- contacts list (selection logic is a bit less straight forward than with messages because contacts are not a list but have strings as keys to prevent duplicate entries)
- contacts list: only show first line of notes
- add direct recipients (in TO) to contacts when sending (in gui.lua, as it's a comfort feature)
- set messages immediately when clicking read/unread, not *after* redrawing the inbox
- set messages only when something changed to reduce disk writes
- move marking mails read to the show message formspec (exept the direct button)
- adjust "No Mail" label
2020-08-10 18:41:05 +02:00
Peter Nerlich
498ef84026
Merge branch 'cc-bcc' into contacts
...
adjusted GUI
2020-08-10 13:01:43 +02:00
Peter Nerlich
1f5a963d78
remove prints
2020-08-10 12:19:42 +02:00