Dont log if message doesnt match

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-08-22 10:39:48 +05:30
parent 034deb3ba1
commit a01b10a01f
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -40,9 +40,6 @@ fn fetch_inbox_top() -> imap::error::Result<Option<String>> {
imap_session.store(format!("{}", message.message), "+FLAGS (\\Deleted)").unwrap(); imap_session.store(format!("{}", message.message), "+FLAGS (\\Deleted)").unwrap();
println!("DELETED SPAM Target!"); println!("DELETED SPAM Target!");
} }
else {
println!("Mail Doesnt match");
}
} }
imap_session.expunge().unwrap(); imap_session.expunge().unwrap();
imap_session.logout()?; imap_session.logout()?;