]> git.notmuchmail.org Git - notmuch/blobdiff - cnotmuch/database.py
Implement Message().get|set_flag()
[notmuch] / cnotmuch / database.py
index 321b9611ac2cf83af5a752040c87afba5087944a..e540bb3ce46dcb2670dcad31b5c11373145ee089 100644 (file)
@@ -1,4 +1,4 @@
-import ctypes, os
+import os
 from ctypes import c_int, c_char_p, c_void_p, c_uint, byref
 from cnotmuch.globals import nmlib, STATUS, NotmuchError, Enum
 from cnotmuch.thread import Threads
@@ -451,6 +451,10 @@ class Query(object):
         The returned threads are owned by the query and as such, will only be 
         valid until the Query is deleted.
 
+        The method sets :attr:`Message.FLAG`\.MATCH for those messages that
+        match the query. The method :meth:`Message.get_flag` allows us
+        to get the value of this flag.
+
         Technically, it wraps the underlying
         *notmuch_query_search_threads* function.