213 Commits

Author SHA1 Message Date
Athozus
e190d19dc1
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>
Co-authored-by: AirSThib <75171564+AirSThib@users.noreply.github.com>
2023-02-26 02:54:34 +02:00
BuckarooBanzay
140608f1ca add canonical_name to luacheck config 2023-02-23 23:32:57 +01:00
BuckarooBanzay
f53221e742 fix smoke test 2023-02-23 23:31:01 +01: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
BuckarooBanzay
d1254a7c5b check messages for missing time field 2022-08-06 20:23:35 +02:00
BuckarooBanzay
bbd6e9123f update ci status badges 2022-08-02 15:06:42 +02:00
BuckarooBanzay
abe3c29e6d strip down to bare mail mod 2022-08-02 15:03:31 +02:00
BuckarooBanzay
3327be9bf4 consistent function syntax 2022-08-02 14:58:42 +02:00
BuckarooBanzay
5642f139df use mtt for integration tests 2022-08-02 14:56:32 +02:00
BuckarooBanzay
4b496a1e61 order received mails by date descending
fixes #21
2022-08-02 14:49:22 +02: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
BuckarooBanzay
461f57cde8 fix global var typo 2021-03-21 10:45:38 +01:00
SX
ef2a4d02e0 Optional QoS support 2021-03-19 20:35:33 +01:00
SX
0aaea28a2f Optional QoS support 2021-03-19 20:35:33 +01:00
SX
dd429cbed4 Optional QoS support 2021-03-19 20:35:33 +01:00
Buckaroo Banzai
416d616a3c
Merge pull request #11 from DiamondPlane/DiamondPlane-patch-1
Colorize on join message
2021-03-16 20:12:37 +01:00
Toby1710
47df85a16a
Update onjoin.lua 2021-03-16 18:13:43 +02:00
Buckaroo Banzai
0f1b3c6260
check field arg for nil 2020-10-30 15:04:18 +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
BuckarooBanzay
18592b0a35 more sanity checks and default values 2020-09-20 20:18:34 +02:00
BuckarooBanzay
be51cff470 field fix 2020-09-20 13:11:38 +02:00
BuckarooBanzay
64262c95a6 map legacy "dst" field to "to"
fixes https://github.com/pandorabox-io/pandorabox.io/issues/542
2020-09-19 13:22:33 +02:00
Buckaroo Banzai
35d29789ca
Merge pull request #6 from PeterNerlich/contacts
Contacts
2020-08-17 09:07:15 +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
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
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
Peter Nerlich
ea0de708da fix some things, adjust GUI elements
- messages are now actually sent (bug in parse player list)
- no more crashes on sending mail (forgot to make variables local)
- actually handle CC and BCC fields instead of leaving them empty, duh
- make new functions be under the mail namespace
- add util functions to ensure the new format, parse and player list as well as checking whether a player is in that list or not
- rearrange some GUI elements (tighter spacing, grouping, increase window height to be consistent)
- convert mails to new format only as needed (old mails stay intact in case someone reverts to old version)
- mails are shaded differently in inbox, depending on whether the player is in the TO field
- FROM, TO and CC fields are all displayed when reading a mail
- add "Reply All" button (TO includes all original recipients plus the sender, but excluding the player himself, while adopting the CC field. To contrast: "Reply" just sets the original sender as TO and leaves the rest empty)
- move reply, replyall and forward to their own functions in GUI (was duplicated for inbox and show mail)
- don't needlessly set messages table when we do nothing but go back
2020-08-10 12:15:34 +02:00
Peter Nerlich
f5f21feb49 fix rename thing leftover 2020-07-31 23:53:49 +02:00
Peter Nerlich
406613ad67 WIP: start to add contacts 2020-07-31 23:51:13 +02:00
Peter Nerlich
f5387e2750 fix variable to be local 2020-07-31 19:08:31 +02:00
Peter Nerlich
522eb0a9ee rename api, add cc and bcc, handle multiple players
rename: src -> from, dst -> to
2020-07-31 12:36:28 +02:00
BuckarooBanzay
2d087eaa13 use proper handler 2020-04-30 14:58:50 +02:00
BuckarooBanzay
cbceb94f22 fix stupid typo
fixes https://github.com/pandorabox-io/pandorabox.io/issues/498
2020-04-28 07:54:43 +02:00
BuckarooBanzay
48cb40b857 split webmail part in modules 2020-04-23 10:00:28 +02:00
BuckarooBanzay
a0dd94d5c5 add integration test 2020-04-23 09:46:30 +02:00
BuckarooBanzay
c8bf087480 use auth test files 2020-04-23 09:06:29 +02:00
BuckarooBanzay
5511cd99af add test players for login 2020-04-23 08:11:49 +02:00