diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-30 10:35:01 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-30 10:35:01 +0100 |
commit | 3004c6982268726fe4b66981287dcbe8bf62aae1 (patch) | |
tree | 10996f925d8af41b056a43839c30076fa10173c0 /tests/imap_features.rs | |
parent | 608dab8e5d7eeed1f7309ab8c5b73c4940a177d0 (diff) | |
download | aerogramme-3004c6982268726fe4b66981287dcbe8bf62aae1.tar.gz aerogramme-3004c6982268726fe4b66981287dcbe8bf62aae1.zip |
check status
Diffstat (limited to 'tests/imap_features.rs')
-rw-r--r-- | tests/imap_features.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/imap_features.rs b/tests/imap_features.rs index b028756..844b176 100644 --- a/tests/imap_features.rs +++ b/tests/imap_features.rs @@ -97,7 +97,7 @@ fn generic_test(imap_socket: &mut TcpStream, lmtp_socket: &mut TcpStream) -> Res select_inbox(imap_socket).context("select inbox")?; // CHECK IS NOT IMPLEMENTED YET //check(...) - status_mailbox(imap_socket).context("status inbox")?; + status_mailbox(imap_socket).context("status of archive from inbox")?; lmtp_handshake(lmtp_socket).context("handshake lmtp done")?; lmtp_deliver_email(lmtp_socket, EMAIL).context("mail delivered successfully")?; noop_exists(imap_socket).context("noop loop must detect a new email")?; @@ -187,6 +187,9 @@ fn select_inbox(imap: &mut TcpStream) -> Result<()> { } fn status_mailbox(imap: &mut TcpStream) -> Result<()> { + imap.write(&b"25 STATUS archive (UIDNEXT MESSAGES)\r\n"[..])?; + let mut buffer: [u8; 6000] = [0; 6000]; + let _read = read_lines(imap, &mut buffer, Some(&b"25 OK"[..]))?; Ok(()) } |