aboutsummaryrefslogtreecommitdiffstats
path: root/worker/notmuch/notmuch.go
blob: 1d064fd2dd780e1616336b7ebf3fcf614195b8f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//go:build notmuch
// +build notmuch

package notmuch

import "git.sr.ht/~rjarry/aerc/models"

var tagToFlag = map[string]models.Flags{
	"unread":  models.SeenFlag,
	"replied": models.AnsweredFlag,
	"draft":   models.DraftFlag,
	"flagged": models.FlaggedFlag,
}

var flagToTag = map[models.Flags]string{
	models.SeenFlag:     "unread",
	models.AnsweredFlag: "replied",
	models.DraftFlag:    "draft",
	models.FlaggedFlag:  "flagged",
}

var flagToInvert = map[models.Flags]bool{
	models.SeenFlag:     true,
	models.AnsweredFlag: false,
	models.DraftFlag:    false,
	models.FlaggedFlag:  false,
}