diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-18 12:42:25 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-18 12:42:25 +0200 |
commit | cfc02ba3685c481ebb71ffeddc970998af987de9 (patch) | |
tree | 04a2631f295b9a0a0e5764655dbab22fb61b8c6a /src/main.rs | |
parent | 7a3ce9f81963cc374271272bfe4e0e204e9b7012 (diff) | |
download | aerogramme-cfc02ba3685c481ebb71ffeddc970998af987de9.tar.gz aerogramme-cfc02ba3685c481ebb71ffeddc970998af987de9.zip |
more stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 9 |
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(()) } |