notmuch: sync maildir flags
Syncs back special notmuch tag like unread to the underlying maildir store
This commit is contained in:
parent
83207c1e1d
commit
3f452ca283
3 changed files with 7 additions and 2 deletions
2
go.mod
2
go.mod
|
@ -29,7 +29,7 @@ require (
|
|||
github.com/smartystreets/assertions v1.0.1 // indirect
|
||||
github.com/smartystreets/goconvey v0.0.0-20190710185942-9d28bd7c0945 // indirect
|
||||
github.com/stretchr/testify v1.3.0
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190726231123-3d59f87d986e
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190821052706-5a1961965cfb
|
||||
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 // indirect
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // indirect
|
||||
|
|
2
go.sum
2
go.sum
|
@ -85,6 +85,8 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
|
|||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190726231123-3d59f87d986e h1:IeB1sn/RMq/o0PP7HNMNpTUHvvOZln9smuJXz1S7qJY=
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190726231123-3d59f87d986e/go.mod h1:zJtFvR3NinVdmBiLyB4MyXKmqyVfZEb2cK97ISfTgV8=
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190821052706-5a1961965cfb h1:eZBIw4TilXSAEYcWKf51bERhwH431YwntDYus0Bgxh0=
|
||||
github.com/zenhack/go.notmuch v0.0.0-20190821052706-5a1961965cfb/go.mod h1:zJtFvR3NinVdmBiLyB4MyXKmqyVfZEb2cK97ISfTgV8=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
|
|
|
@ -159,6 +159,10 @@ func (db *DB) msgModify(key string,
|
|||
defer msg.Close()
|
||||
|
||||
cb(msg)
|
||||
err = msg.TagsToMaildirFlags()
|
||||
if err != nil {
|
||||
db.logger.Printf("could not sync maildir flags: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -176,4 +180,3 @@ func (db *DB) MsgModifyTags(key string, add, remove []string) error {
|
|||
})
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue