aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 2b17e4c..81cf220 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,9 +8,9 @@ mod cryptoblob;
mod time;
mod uidindex;
-use bayou::Bayou;
+use bayou::*;
use cryptoblob::Key;
-use uidindex::{UidIndex, UidIndexOp};
+use uidindex::*;
#[tokio::main]
async fn main() {
@@ -43,5 +43,10 @@ async fn do_stuff() -> Result<()> {
mail_index.sync().await?;
+ let add_mail_op = mail_index
+ .state()
+ .op_mail_add(MailUuid([0xFFu8; 24]), vec!["\\Unseen".into()]);
+ mail_index.push(add_mail_op).await?;
+
Ok(())
}