From 3f452ca283e7e1b0e0f75f386f7551c0766d8704 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 13 Sep 2019 08:48:00 +0200 Subject: notmuch: sync maildir flags Syncs back special notmuch tag like unread to the underlying maildir store --- worker/notmuch/lib/database.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'worker/notmuch/lib') 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 } - -- cgit