# README
Mail-GO
This is an effort to rewrite Wii Mail legacy PHP scripts into golang. Some reasons why:
apache2
has the fun tendency to go overboard on memory usage.go
is fun.
Read the wiki for setting up your own Mail-GO server!
How to develop
The source is entirely here, with each individual cgi component in their own file.
A Dockerfile
is available to create an image. You can use docker-compose.yml
to develop on this specific component with its own mysql, or use something that doesn't yet exist to develop on DC24 as a whole.
You can use docker-compose up
to start up both MySQL and Mail-GO.
How can I use the patcher for my own usage?
You're welcome to POST /patch
with a nwc24msg.cfg
under form key uploaded_config
.
What should I do if I'm adding a new dependency?
There's a get.sh
script in the docker
folder that has all major external dependencies. This allows us to cache go get
.
If you're adding another dependency, it's recommended you add that to the script.
# Functions
No description provided by the author
Auth is a function designed to parse potential information from a WC24 request, such as mlchkid and passwd.
Check handles adding the proper interval for check.cgi along with future challenge solving and future mail existence checking.
Delete handles delete requests of mail.
Prepare Mail to be sent across the pipes.
Send Mail to the instance key.
No description provided by the author
No description provided by the author
Receive loops through stored mail and formulates a response.
Send takes POSTed mail by the Wii and stores it in the database for future usage.
# Constants
No description provided by the author