Read email and post to hook #1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue