mirror of
https://github.com/FliegendeWurst/inboxid.git
synced 2024-11-08 10:20:39 +00:00
filter: ignore mails marked for deletion
This commit is contained in:
parent
746b4b9023
commit
33bdff42fb
@ -31,6 +31,9 @@ fn do_filtering(mailbox: &str, config: &str) -> Result<()> {
|
||||
imap_session.select(mailbox)?;
|
||||
|
||||
for mail in mails {
|
||||
if mail.has_flag2(TRASHED) || mail.has_flag2(DELETE) {
|
||||
continue; // ignore mails marked for deletion
|
||||
}
|
||||
if let Some(action) = mailproc::handle(&mail, &[], &config) { // TODO: provide raw bytes
|
||||
println!("{:?}", action.0);
|
||||
println!(" matched {}", mail.subject);
|
||||
|
Loading…
Reference in New Issue
Block a user