GODT-1686: Add Label/Folder filtering to pmapi

This commit is contained in:
Romain Le Jeune
2022-07-13 13:02:11 +00:00
committed by Jakub
parent 7cad7bcddb
commit 654e816e6b
11 changed files with 422 additions and 17 deletions

View File

@ -128,7 +128,7 @@ func (mc *mailboxCounts) getPMLabel() *pmapi.Label {
Path: mc.LabelName,
Color: mc.Color,
Order: mc.Order,
Type: pmapi.LabelTypeMailbox,
Type: pmapi.LabelTypeMailBox,
Exclusive: pmapi.Boolean(mc.IsFolder),
}
}

View File

@ -59,7 +59,7 @@ func (store *Store) createMailbox(name string) error {
Name: name,
Color: color,
Exclusive: pmapi.Boolean(exclusive),
Type: pmapi.LabelTypeMailbox,
Type: pmapi.LabelTypeMailBox,
})
return err
}
@ -188,7 +188,7 @@ func (store *Store) createOrUpdateMailboxEvent(label *pmapi.Label) error {
store.lock.Lock()
defer store.lock.Unlock()
if label.Type != pmapi.LabelTypeMailbox {
if label.Type != pmapi.LabelTypeMailBox {
return nil
}