commit 744f8d5c59589e65e3e92083adc0001565595c1d from: Oliver Lowe date: Thu Apr 14 08:50:55 2022 UTC Add quick start scripts commit - 925168e0252fd037ac6e89d98f75d613efdadef2 commit + 744f8d5c59589e65e3e92083adc0001565595c1d blob - e1cea2ab73174560e4e9f9dacf666cfd3c6abdb4 blob + 0ade84bdae0f513a025e30b52ceb6e4949eaeb3c --- README.md +++ README.md @@ -1 +1,13 @@ [![builds.sr.ht status](https://builds.sr.ht/~otl/mailmux.svg)](https://builds.sr.ht/~otl/mailmux?) + +To register: + + contrib/mmregister + +To create a new alias: + + contrib/mmalias + +To list aliases for your account: + + contrib/mmalias -l blob - /dev/null blob + a8d5eb03c576072d5ac603d5e0cd80638b154153 (mode 755) --- /dev/null +++ contrib/mmalias @@ -0,0 +1,27 @@ +#!/bin/sh + +read -p 'Email address: ' username +read -s -p 'Password: ' password + +if test "$1" = "-l" +then + tmsg=" +{ + \"Type\": 6, + \"Username\": \"$username\", + \"Password\": \"$password\" +} +" +else + tmsg=" +{ + \"Type\": 4, + \"Username\": \"$username\", + \"Password\": \"$password\" +} +" +fi + +echo + +curl -H 'Content-Type: application/json' -d "$tmsg" http://mx1.mailmux.net/alias blob - /dev/null blob + 11438b06fc5a7ab42c41bb81852986099fa2c40e (mode 755) --- /dev/null +++ contrib/mmregister @@ -0,0 +1,14 @@ +#!/bin/sh + +read -p 'Email address: ' username +read -s -p 'Password: ' password + +tmsg=" +{ + \"Type\": 1, + \"Username\": \"$username\", + \"Password\": \"$password\" +} +" + +curl -H 'Content-Type: application/json' -d "$tmsg" http://mx1.mailmux.net/register