aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-18 12:42:25 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-18 12:42:25 +0200
commitcfc02ba3685c481ebb71ffeddc970998af987de9 (patch)
tree04a2631f295b9a0a0e5764655dbab22fb61b8c6a /src/main.rs
parent7a3ce9f81963cc374271272bfe4e0e204e9b7012 (diff)
downloadaerogramme-cfc02ba3685c481ebb71ffeddc970998af987de9.tar.gz
aerogramme-cfc02ba3685c481ebb71ffeddc970998af987de9.zip
more stuff
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(())
}