https://github.com/synrc/mail
✉️ MAIL: Message Handling Service. ISO/IEC: 10021; ITU/IETF: X.400—X.403, X.407—X.408, X.411—X.413, X.419—X.420.
https://github.com/synrc/mail
chat
Last synced: 7 months ago
JSON representation
✉️ MAIL: Message Handling Service. ISO/IEC: 10021; ITU/IETF: X.400—X.403, X.407—X.408, X.411—X.413, X.419—X.420.
- Host: GitHub
- URL: https://github.com/synrc/mail
- Owner: synrc
- License: other
- Created: 2014-08-04T14:46:08.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T00:36:36.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T05:33:39.359Z (about 2 years ago)
- Topics: chat
- Language: Erlang
- Homepage: https://mail.n2o.dev
- Size: 6.1 MB
- Stars: 23
- Watchers: 10
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MAIL: Delivery Protocol
=======================
Simple mailbox delivery protocol.
Features
--------
* Database Support: FS, MNESIA, ROCKSDB
* MQ Support: GPROC, SYN
* Formatters Support: TXT, BERT, BER/DER/PER [ASN.1]
* Size: 80 LOC
Intro
-----
CHAT is an QoS=1 example of messaging system built on top of:
* SYN for publish subscribe message queue;
* N2O for protocols;
* KVX for data storage;
* and COWBOY for web server.
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
$ wscat --no-check -c wss://localhost:8042/ws
> HELP
< N2O
| SEND
| BOX
| CUT .
> N2O maxim
< USER maxim
> SEND vlad HELO
< ERROR user doesn't exist.
> N2O vlad
< USER vlad
> SEND maxim OK
< NOTIFY vlad:maxim:1556151953113322286:OK
< ACK "1556151953113322286"
> N2O maxim
< USER maxim
> BOX
< LIST
vlad:maxim:1556151953113322286:OK
> SEND maxim this is me
< NOTIFY maxim:maxim:1556152151055371152:this is me
< ACK "1556152151055371152"
> SEND maxim back again
< NOTIFY maxim:maxim:1556152157283311935:back again
< ACK "1556152157283311935"
> BOX
< LIST
vlad:maxim:1556151953113322286:OK
maxim:maxim:1556152151055371152:this is me
maxim:maxim:1556152157283311935:back again
> CUT 1556152157283311935
< ERASED 3
> BOX
< LIST
>
```
Documentation
-------------
The project homepage is mail.n2o.dev.
Credits
-------
* Maxim Sokhatsky
* Vladimir Kirillov
OM A HUM