aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-09-13 08:48:00 +0200
committerDrew DeVault <sir@cmpwn.com>2019-09-16 12:19:14 -0400
commit3f452ca283e7e1b0e0f75f386f7551c0766d8704 (patch)
treed4fc8839067358856441c919b864d73bc2914fee /worker
parent83207c1e1d00d118a2bba20d9fd178f32d7f88da (diff)
downloadaerc-3f452ca283e7e1b0e0f75f386f7551c0766d8704.tar.gz
notmuch: sync maildir flags
Syncs back special notmuch tag like unread to the underlying maildir store
Diffstat (limited to 'worker')
-rw-r--r--worker/notmuch/lib/database.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go
index 3398504b..f4fd588d 100644
--- a/worker/notmuch/lib/database.go
+++ b/worker/notmuch/lib/database.go
@@ -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
}
-