from ctypes import c_char_p, c_long, c_int
from notmuch.globals import (nmlib, STATUS,
NotmuchError, NotmuchThreadP, NotmuchThreadsP, NotmuchMessagesP,
from ctypes import c_char_p, c_long, c_int
from notmuch.globals import (nmlib, STATUS,
NotmuchError, NotmuchThreadP, NotmuchThreadsP, NotmuchMessagesP,
from notmuch.message import Messages
from notmuch.tag import Tags
from datetime import date
from notmuch.message import Messages
from notmuch.tag import Tags
from datetime import date
"""Represents a list of notmuch threads
This object provides an iterator over a list of notmuch threads
"""Represents a list of notmuch threads
This object provides an iterator over a list of notmuch threads
thread = Thread(Threads._get(self._threads), self)
self._move_to_next(self._threads)
return thread
thread = Thread(Threads._get(self._threads), self)
self._move_to_next(self._threads)
return thread
raise NotmuchError(STATUS.NULL_POINTER)
self._thread = thread_p
#keep reference to parent, so we keep it alive
raise NotmuchError(STATUS.NULL_POINTER)
self._thread = thread_p
#keep reference to parent, so we keep it alive
_get_total_messages = nmlib.notmuch_thread_get_total_messages
_get_total_messages.argtypes = [NotmuchThreadP]
_get_total_messages = nmlib.notmuch_thread_get_total_messages
_get_total_messages.argtypes = [NotmuchThreadP]
raise NotmuchError(STATUS.NULL_POINTER)
return Messages(msgs_p, self)
raise NotmuchError(STATUS.NULL_POINTER)
return Messages(msgs_p, self)
raise NotmuchError(STATUS.NULL_POINTER)
return Tags(tags_p, self)
raise NotmuchError(STATUS.NULL_POINTER)
return Tags(tags_p, self)