@@ -106,7 +106,10 @@ pub async fn download_email_from_imap() -> anyhow::Result<Vec<(u32, PathBuf)>>{
}
// Logout from the IMAP session
- session.logout().await.expect("Unable to logout");
+ match session.logout().await{
+ Ok(_) => {}
+ Err(_) => {}
+ };
Ok(stored_paths)