Add print on purge finish

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-08-22 11:34:59 +05:30
parent 2ff13e7f97
commit 4d860b8d6a
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -9,7 +9,7 @@
use imap;
use regex::Regex;
use std::fs::File;
use std::io::{self, prelude::*, BufReader};
use std::io::{prelude::*, BufReader};
fn main() {
fetch_inbox_top().unwrap();
@ -49,5 +49,6 @@ fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
}
imap_session.expunge().unwrap();
imap_session.logout()?;
println!("\n\n\n********PURGED ALL REQUESTED MAIL********");
Ok(Some("logout".to_string()))
}