--HG--
extra : transplant_source : %3E%B1%BB%DF%3C%22%A6%CC%90Z%E8v%95%962%DD%B2%A1%11%CC
def next(self):
nmlib.notmuch_tags_move_to_next(self._tags)
if not nmlib.notmuch_tags_valid(self._tags):
def next(self):
nmlib.notmuch_tags_move_to_next(self._tags)
if not nmlib.notmuch_tags_valid(self._tags):
- print("Freeing the Tags now")
- nmlib.notmuch_tags_destroy (self._tags)
raise StopIteration
return Tags._get (self._tags)
raise StopIteration
return Tags._get (self._tags)
nmlib.notmuch_messages_move_to_next(self._msgs)
if not nmlib.notmuch_messages_valid(self._msgs):
nmlib.notmuch_messages_move_to_next(self._msgs)
if not nmlib.notmuch_messages_valid(self._msgs):
- print("Freeing the Messages now")
- nmlib.notmuch_messages_destroy (self._msgs)
self._msgs = None
raise StopIteration
return Message(Messages._get (self._msgs), self)
self._msgs = None
raise StopIteration
return Message(Messages._get (self._msgs), self)
if msg_p is None:
NotmuchError(STATUS.NULL_POINTER)
self._msg = msg_p
if msg_p is None:
NotmuchError(STATUS.NULL_POINTER)
self._msg = msg_p
+ #keep reference to parent, so we keep it alive
self._parent = parent
print "Inited Message derived from %s" %(str(parent))
self._parent = parent
print "Inited Message derived from %s" %(str(parent))