X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=cnotmuch%2Fdatabase.py;h=e540bb3ce46dcb2670dcad31b5c11373145ee089;hp=321b9611ac2cf83af5a752040c87afba5087944a;hb=e80daac2931d99da10bf2d1d106fb35455455470;hpb=9058e3d1b55ed35cda2df6426578435934af19de diff --git a/cnotmuch/database.py b/cnotmuch/database.py index 321b9611..e540bb3c 100644 --- a/cnotmuch/database.py +++ b/cnotmuch/database.py @@ -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.