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

@ -38,7 +38,7 @@ const (
DraftLabel = "8"
StarredLabel = "10"
LabelTypeMailbox = 1
LabelTypeMailBox = 1
LabelTypeContactGroup = 2
)
@ -89,7 +89,7 @@ type Label struct { //nolint:maligned
}
func (c *client) ListLabels(ctx context.Context) (labels []*Label, err error) {
return c.listLabelType(ctx, LabelTypeMailbox)
return c.listLabelType(ctx, LabelTypeMailBox)
}
func (c *client) ListContactGroups(ctx context.Context) (labels []*Label, err error) {