Page 1 of 1

[Mod] Mail/Webmail [git][mail]

PostPosted: Fri Dec 14, 2018 09:43
by BuckarooBanzay
Mail/webmail

This is a fork of cheapies mail mod

It adds a mail-system that allows players to send each other messages in-game and via webmail (optional)

Previous work
Based on the works, from https://forum.minetest.net/viewtopic.php?t=14464

Downloads:
Source: https://github.com/thomasrudin-mt/mail

Installation
See: https://github.com/thomasrudin-mt/mail/blob/master/README.md#installation


Features
  • In-game mail
  • Webmail with nodejs application

Demo
The mod is in use at the pandorabox server and ingame mails can be accessed via:
https://pandorabox.io/webmail/

Roadmap

Dependencies
default

Thanks to
  • cheapie (initial project)
  • rubenwardy (ui fixes, improvements)

Screenshots:

Ingame:
Image

Webmail:
Image


License

Code: WTFPL unless otherwise noted in LICENSE

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Fri Dec 14, 2018 17:28
by runs
Cool

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Fri Dec 14, 2018 22:02
by rubenwardy
It's annoying how the buttons are cut off, and that they appear when nothing is selected. The X button is also nonstandard

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sat Dec 15, 2018 22:04
by Krock
rubenwardy wrote:It's annoying how the buttons are cut off, and that they appear when nothing is selected. The X button is also nonstandard


From how the formspec is designed, it's very likely that cheapie's layout was not changed at all (a mod repost, kinda). I'd also like to see these buttons to be wider - maybe move them to the bottom of the list for more horizontal space?

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sun Dec 16, 2018 09:35
by Pyrollo
Krock wrote:
rubenwardy wrote:It's annoying how the buttons are cut off, and that they appear when nothing is selected. The X button is also nonstandard


From how the formspec is designed, it's very likely that cheapie's layout was not changed at all (a mod repost, kinda). I'd also like to see these buttons to be wider - maybe move them to the bottom of the list for more horizontal space?


Or use icons and tooltips

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sun Dec 16, 2018 15:39
by GamingAssociation39
^like the laptop mods email app has???

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sun Dec 16, 2018 16:22
by BuckarooBanzay
Krock wrote:
rubenwardy wrote:It's annoying how the buttons are cut off, and that they appear when nothing is selected. The X button is also nonstandard


From how the formspec is designed, it's very likely that cheapie's layout was not changed at all (a mod repost, kinda). I'd also like to see these buttons to be wider - maybe move them to the bottom of the list for more horizontal space?


Yeah, i forked cheapies repo and changed some code behind the curtains (UI) to get the webmail interface working.
The ui enhancements are still on my list of items to do.

My future plans include:

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sat Dec 22, 2018 11:20
by bosapara
How to use it for Windows?

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Sun Dec 23, 2018 15:54
by BuckarooBanzay
bosapara wrote:How to use it for Windows?


I don't know yet how to deal properly with those exotic/non-standard platforms.
The installation requirements should be the same with windows, only node and npm at the moment.
See: https://github.com/thomasrudin-mt/mail/ ... stallation

Download nodejs from https://nodejs.org/en/download/ and npm should be bundled with it...

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Tue Jan 15, 2019 19:47
by BuckarooBanzay
Progress update 2019-01-15

Thanks to rubenwardy for his ui and lua enhancements.
The formspec looks more pleasing now (as good as formspecs go anyway:)

I added a few points to the roadmap, where i want this project to go in the next few months:
Roadmap

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Tue Jan 15, 2019 20:42
by rubenwardy
Some images:

Image

Image

Image

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Wed Jan 16, 2019 10:06
by wziard
Is it possible to set it up in a way that all players can email the server admin (and vice versa), but not each other?

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Wed Jan 16, 2019 10:38
by rubenwardy
wziard wrote:Is it possible to set it up in a way that all players can email the server admin (and vice versa), but not each other?


This is certainly possible by modifying the mod, or by creating another mod, but there's no setting for this yet.

Here's a quick mod to make a priv for it:

Code: Select all
minetest.register_privilege("mail")

local old = mail.send
mail.send = function(src, dst, subject, body)
    if not minetest.check_player_privs(dst, { kick = true }) and
            not minetest.check_player_privs(src, { mail = true }) then
        minetest.chat_send_player(src, "You are only allowed to mail moderators! Missing priv: mail")
        return false
    end

    return old(src, dst, subject, body)
end

Re: [Mod] Mail/Webmail [git][mail]

PostPosted: Wed Jan 16, 2019 11:51
by wziard
Thanks. That's helpful.