Improve draft

This commit is contained in:
Quentin 2022-05-19 10:21:14 +02:00
parent 89ffe98bc0
commit d71d40d582
Signed by: quentin
GPG key ID: E9602264D639FF68

View file

@ -12,6 +12,18 @@ $ export RUSTFLAGS="--cfg tokio_unstable"
$ cargo run --example simple $ cargo run --example simple
``` ```
- Test it manually
Theoretically, IMAP server expected end of lines with `\r\n` but implementations are more liberal.
To check with `\r\n`, use the `socat` command line.
The `nc` command line will send only `\n` when run on Linux, our current implementation supports it.
```
$ socat readline tcp4:127.0.0.1:4567,crnl
$ nc 127.0.0.1 4567
```
- [Basic python testing script](../scripts/test_imap.py) - [Basic python testing script](../scripts/test_imap.py)
```shell ```shell