WIP implem status
This commit is contained in:
parent
771c4eac79
commit
608dab8e5d
1 changed files with 8 additions and 0 deletions
|
@ -95,6 +95,9 @@ fn generic_test(imap_socket: &mut TcpStream, lmtp_socket: &mut TcpStream) -> Res
|
||||||
// UNSUBSCRIBE IS NOT IMPLEMENTED YET
|
// UNSUBSCRIBE IS NOT IMPLEMENTED YET
|
||||||
//unsubscribe_mailbox(imap_socket).context("unsubscribe from archive")?;
|
//unsubscribe_mailbox(imap_socket).context("unsubscribe from archive")?;
|
||||||
select_inbox(imap_socket).context("select inbox")?;
|
select_inbox(imap_socket).context("select inbox")?;
|
||||||
|
// CHECK IS NOT IMPLEMENTED YET
|
||||||
|
//check(...)
|
||||||
|
status_mailbox(imap_socket).context("status inbox")?;
|
||||||
lmtp_handshake(lmtp_socket).context("handshake lmtp done")?;
|
lmtp_handshake(lmtp_socket).context("handshake lmtp done")?;
|
||||||
lmtp_deliver_email(lmtp_socket, EMAIL).context("mail delivered successfully")?;
|
lmtp_deliver_email(lmtp_socket, EMAIL).context("mail delivered successfully")?;
|
||||||
noop_exists(imap_socket).context("noop loop must detect a new email")?;
|
noop_exists(imap_socket).context("noop loop must detect a new email")?;
|
||||||
|
@ -183,6 +186,11 @@ fn select_inbox(imap: &mut TcpStream) -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn status_mailbox(imap: &mut TcpStream) -> Result<()> {
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
fn lmtp_handshake(lmtp: &mut TcpStream) -> Result<()> {
|
fn lmtp_handshake(lmtp: &mut TcpStream) -> Result<()> {
|
||||||
let mut buffer: [u8; 1500] = [0; 1500];
|
let mut buffer: [u8; 1500] = [0; 1500];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue