11 Commits

Author SHA1 Message Date
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
Buckaroo Banzai
0f1b3c6260
check field arg for nil 2020-10-30 15:04:18 +01:00
BuckarooBanzay
51e80c6d9d satisfy luacheck 2020-10-13 19:20:18 +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
39f47437b6 migration fixes 2020-08-12 12:23:46 +02:00
Peter Nerlich
8beec340d3 revert renaming "sender" to "from" to maintain backwards compatibility 2020-08-12 12:05:12 +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
522eb0a9ee rename api, add cc and bcc, handle multiple players
rename: src -> from, dst -> to
2020-07-31 12:36:28 +02:00
BuckarooBanzay
93690fdf6e cleanup / array rx support 2020-01-27 13:00:03 +01:00
BuckarooBanzay
15e5d91c30 stricter luacheck 2020-01-06 12:58:26 +01:00
NatureFreshMilk
ca88374fbd separated from webmail mod 2019-09-16 08:06:54 +02:00