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

BuckarooBanzay
Member
 
Posts: 288
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

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

by BuckarooBanzay » Fri Dec 14, 2018 09:43

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
Last edited by BuckarooBanzay on Mon Jan 28, 2019 21:46, edited 2 times in total.
 

User avatar
runs
Member
 
Posts: 791
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy
 

User avatar
rubenwardy
Moderator
 
Posts: 5826
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Dec 14, 2018 22:02

It's annoying how the buttons are cut off, and that they appear when nothing is selected. The X button is also nonstandard
 

User avatar
Krock
Developer
 
Posts: 4365
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

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

by Krock » Sat Dec 15, 2018 22:04

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?
>> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Pyrollo
Member
 
Posts: 317
Joined: Mon Jan 08, 2018 15:14
Location: Paris
GitHub: pyrollo
In-game: Naj

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

by Pyrollo » Sun Dec 16, 2018 09:35

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
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]
 

User avatar
GamingAssociation39
Member
 
Posts: 819
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

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

by GamingAssociation39 » Sun Dec 16, 2018 15:39

^like the laptop mods email app has???
Jesus Is Lord and Savior!!!
 

BuckarooBanzay
Member
 
Posts: 288
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

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

by BuckarooBanzay » Sun Dec 16, 2018 16:22

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:
 

User avatar
bosapara
Member
 
Posts: 528
Joined: Fri Apr 07, 2017 08:49
GitHub: bosapara
 

BuckarooBanzay
Member
 
Posts: 288
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

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

by BuckarooBanzay » Sun Dec 23, 2018 15:54

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...
 

BuckarooBanzay
Member
 
Posts: 288
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

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

by BuckarooBanzay » Tue Jan 15, 2019 19:47

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
 

User avatar
rubenwardy
Moderator
 
Posts: 5826
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

wziard
Member
 
Posts: 126
Joined: Mon Oct 29, 2018 19:12

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

by wziard » Wed Jan 16, 2019 10:06

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?
 

User avatar
rubenwardy
Moderator
 
Posts: 5826
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Wed Jan 16, 2019 10:38

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
 

wziard
Member
 
Posts: 126
Joined: Mon Oct 29, 2018 19:12
 


Return to Mod Releases



Who is online

Users browsing this forum: Lone_Wolf and 5 guests