We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
notmuch-abook
notmuch2
1 parent 0f63706 commit 1195598Copy full SHA for 1195598
.bin/notmuch-abook
@@ -73,7 +73,7 @@ import os
73
import re
74
import sys
75
import docopt
76
-import notmuch
+import notmuch2 as notmuch
77
import sqlite3
78
import email.utils
79
import email.parser
@@ -194,8 +194,7 @@ class NotmuchAddressGetter(object):
194
195
def _get_all_messages(self):
196
notmuch_db = notmuch.Database(self.db_path)
197
- query = notmuch.Query(notmuch_db, self.query)
198
- return query.search_messages()
+ return notmuch_db.messages(self.query)
199
200
def generate(self):
201
msgs = self._get_all_messages()
0 commit comments