aboutsummaryrefslogblamecommitdiffstats
path: root/worker/notmuch/notmuch.go
blob: 854abb6e18baddc115e789e8f9e524e2cb56aa40 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                        
                                        
                                    



                                        




                                        


                                         




                                    
 
//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,
	"passed":  models.ForwardedFlag,
	"draft":   models.DraftFlag,
	"flagged": models.FlaggedFlag,
}

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

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