aboutsummaryrefslogtreecommitdiff
path: root/tests/rfc3691_imapext_unselect.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-04 11:53:49 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-04 11:53:49 +0100
commit3f5d7fa766c268923c0c2c6e1dd50f4693f51a44 (patch)
tree04197ac582194ab77b32fd3a66ff7f8b216f1e30 /tests/rfc3691_imapext_unselect.rs
parenta93967a6f8f1c881c64879e61edc46d64c4c662e (diff)
downloadaerogramme-feat/more-ext.tar.gz
aerogramme-feat/more-ext.zip
remove old testsfeat/more-ext
Diffstat (limited to 'tests/rfc3691_imapext_unselect.rs')
-rw-r--r--tests/rfc3691_imapext_unselect.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/rfc3691_imapext_unselect.rs b/tests/rfc3691_imapext_unselect.rs
deleted file mode 100644
index 4c5a45d..0000000
--- a/tests/rfc3691_imapext_unselect.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use anyhow::Context;
-
-mod common;
-use crate::common::fragments::*;
-
-fn main() {
- common::aerogramme_provider_daemon_dev(|imap_socket, lmtp_socket| {
- connect(imap_socket).context("server says hello")?;
-
- lmtp_handshake(lmtp_socket).context("handshake lmtp done")?;
- lmtp_deliver_email(lmtp_socket, Email::Basic).context("mail delivered successfully")?;
-
- capability(imap_socket, Extension::Unselect).context("check server capabilities")?;
- login(imap_socket, Account::Alice).context("login test")?;
- select(imap_socket, Mailbox::Inbox, None).context("select inbox")?;
- noop_exists(imap_socket).context("noop loop must detect a new email")?;
- add_flags_email(imap_socket, Selection::FirstId, Flag::Deleted).context("add delete flags to the email")?;
- unselect(imap_socket)
- .context("unselect inbox while preserving email with the \\Delete flag")?;
- select(imap_socket, Mailbox::Inbox, Some(1)).context("select inbox again")?;
- fetch_rfc822(imap_socket, Selection::FirstId, Email::Basic).context("message is still present")?;
- close(imap_socket).context("close inbox and expunge message")?;
- select(imap_socket, Mailbox::Inbox, Some(0)).context("select inbox again and check it's empty")?;
-
- Ok(())
- })
- .expect("test fully run");
-}