Add print on purge finish
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
2ff13e7f97
commit
4d860b8d6a
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
||||||
use imap;
|
use imap;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{self, prelude::*, BufReader};
|
use std::io::{prelude::*, BufReader};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
fetch_inbox_top().unwrap();
|
fetch_inbox_top().unwrap();
|
||||||
|
@ -49,5 +49,6 @@ fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
|
||||||
}
|
}
|
||||||
imap_session.expunge().unwrap();
|
imap_session.expunge().unwrap();
|
||||||
imap_session.logout()?;
|
imap_session.logout()?;
|
||||||
|
println!("\n\n\n********PURGED ALL REQUESTED MAIL********");
|
||||||
Ok(Some("logout".to_string()))
|
Ok(Some("logout".to_string()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue