-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
MAIL: Message Delivery System | ||
============================= | ||
|
||
TL;DR UNIX mail done right. | ||
SYNRC ✉️ MAIL | ||
============= | ||
|
||
Open source lightweight Messaging Handling Service (MHS X.419) | ||
and Interpersonal Messaging System (IPMS X.420). | ||
MHS was a very open system, it was popular in the | ||
early 1990s as a glue between proprietary | ||
email systems, competing standards-based SMTP and X.400. | ||
However, by 1996 it was clear that SMTP over the Internet | ||
would take over this role. However MHS/IPMS is a faster | ||
and has more telecomunication flavour than SMTP track of standards. | ||
Now MHS is used in avionics and in Military Message Handling | ||
System (MMHS, RFC 6477). | ||
|
||
Features | ||
-------- | ||
|
||
* Usage Example of N2O and KVS | ||
* RocksDB support out of the box | ||
* 150 LOC | ||
* Databases: MNESIA, ROCKSDB | ||
* Pub/Sub GPROC, SYN | ||
* Formatters BASE64, BERT, BER/DER/PER [ASN.1] | ||
|
||
Prerequisites | ||
------------- | ||
Intro | ||
----- | ||
|
||
* cmake (rocksdb) | ||
MAIL is an QoS=1 example of messaging system built on top of: | ||
|
||
Run | ||
--- | ||
* SYN for publish subscribe message queue; | ||
* N2O for protocols; | ||
* KVS for data storage; | ||
* ASN1 for encoding. | ||
|
||
Before running, [fullchain.pem](./priv/ssl/fullchain.pem) certificate has to be added into a system. | ||
It also contains simple textual WebSocket protocol for debugging purposes. | ||
You can freely use this example with your favourite formatter for user terminal protocol. | ||
|
||
```shell | ||
``` | ||
$ mix deps.get | ||
$ mix compile | ||
$ iex -S mix | ||
``` | ||
|
||
Then run `wscat --no-check -c https://localhost:8042/ws` | ||
|
||
Credits | ||
------- | ||
|
||
* Maxim Sokhatsky [5HT](https://github.com/5HT) | ||
* Vlad Ki [proger](https://github.com/proger) | ||
* Maxim Sokhatsky | ||
|
||
OM A HUM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use Mix.Config | ||
|
||
config :n2o, | ||
port: 8042, | ||
proto: CHAT.Server, | ||
port: 8043, | ||
proto: MAIL.Server, | ||
ws_services: [:chat,:crm], | ||
mqtt_services: [], | ||
pickler: :n2o_secret, | ||
mq: :n2o_syn, | ||
upload: "./priv/static", | ||
protocols: [:n2o_heart, CHAT.TXT] | ||
protocols: [:n2o_heart, MAIL.TXT] | ||
|
||
config :kvs, | ||
dba: :kvs_rocks, | ||
dba_st: :kvs_st, | ||
schema: [:kvs, :kvs_stream, CHAT] | ||
dba: :kvs_mnesia, | ||
dba_st: :kvs_stream, | ||
schema: [:kvs, :kvs_stream] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.