Browse Source

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 11 months ago
parent
commit
eca10a5660
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 8
      melib/src/backends.rs
  2. 8
      src/conf/accounts.rs

8
melib/src/backends.rs

@ -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)]

8
src/conf/accounts.rs

@ -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…
Cancel
Save