GODT-1686: Add Label/Folder filtering to pmapi

This commit is contained in:
Romain Le Jeune
2022-07-13 13:02:11 +00:00
parent 2566bdcedf
commit dd1e2b2100
11 changed files with 422 additions and 17 deletions

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
}