Simple fix for notmuch database not in sync

This commit is contained in:
Matthieu Coudron 2014-12-18 22:02:27 +01:00
parent b374901642
commit cb80f133d7

View File

@ -35,11 +35,10 @@ class Notmuch(Backend):
self.db_path = config.get("database", "path") self.db_path = config.get("database", "path")
self.db = notmuch.Database(self.db_path)
@property @property
def unread(self): def unread(self):
return notmuch.Query(self.db, "tag:unread and tag:inbox").count_messages() db = notmuch.Database(self.db_path)
return notmuch.Query(db, "tag:unread and tag:inbox").count_messages()
Backend = Notmuch Backend = Notmuch