diff --git a/doc/draft.md b/doc/draft.md index 6584f68..84120af 100644 --- a/doc/draft.md +++ b/doc/draft.md @@ -12,6 +12,18 @@ $ export RUSTFLAGS="--cfg tokio_unstable" $ 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) ```shell