summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
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 3398504..f4fd588 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
 }
-