melib/backends: add mailbox management events to RefreshEventKind

Add mailbox management events from RFC 5423 Internet Message Store
Events

https://tools.ietf.org/html/rfc5423#page-8
lazy_fetch
Manos Pitsidianakis 2021-01-07 15:48:13 +02:00
parent a697dfabbd
commit eca10a5660
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 16 additions and 0 deletions

View File

@ -246,6 +246,14 @@ pub enum RefreshEventKind {
NewFlags(EnvelopeHash, (Flag, Vec<String>)),
Rescan,
Failure(MeliError),
MailboxCreate(Mailbox),
MailboxDelete(MailboxHash),
MailboxRename {
old_mailbox_hash: MailboxHash,
new_mailbox: Mailbox,
},
MailboxSubscribe(MailboxHash),
MailboxUnsubscribe(MailboxHash),
}
#[derive(Debug, Clone)]

View File

@ -1011,6 +1011,14 @@ impl Account {
Some(crate::types::NotificationType::Error(err.kind)),
));
}
RefreshEventKind::MailboxCreate(_new_mailbox) => {}
RefreshEventKind::MailboxDelete(_mailbox_hash) => {}
RefreshEventKind::MailboxRename {
old_mailbox_hash: _,
new_mailbox: _,
} => {}
RefreshEventKind::MailboxSubscribe(_mailbox_hash) => {}
RefreshEventKind::MailboxUnsubscribe(_mailbox_hash) => {}
}
}
None