From d71d40d5822ed627c4c78dc11b4e3ffd1d278d95 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 19 May 2022 10:21:14 +0200 Subject: [PATCH] Improve draft --- doc/draft.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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