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-8lazy_fetch
parent
a697dfabbd
commit
eca10a5660
|
@ -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)]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue