Read email and post to hook #1

Merged
c4181 merged 3 commits from read-email-and-post-to-hook into main 2024-05-15 23:19:38 +00:00
Showing only changes of commit 3410b173b2 - Show all commits

View file

@ -53,7 +53,7 @@ fn get_emails(imap_session: &mut imap::Session<TcpStream>) -> Option<HashMap<u32
return None; return None;
} }
let messages = imap_session.fetch("1:".to_owned() + &*ordinals.iter().max().unwrap().to_string(), "(BODY[TEXT] ENVELOPE)")?; let messages = imap_session.fetch("1:".to_string() + &*ordinals.iter().max().unwrap().to_string(), "(BODY[TEXT] ENVELOPE)")?;
let mut emails: HashMap<u32, Email> = HashMap::new(); let mut emails: HashMap<u32, Email> = HashMap::new();
if messages.is_empty() { if messages.is_empty() {
return None; return None;