- def get_mailbox(self):
- """This functions returns a list of messages found in the conversation.
-
- :returns: list -- list of Conversation objects.
-
- """
-
- r = self.session.get('{0}/conversations.json'.format(self.pod))
-
- if r.status_code != 200:
- raise Exception('wrong status code: {0}'.format(r.status_code))
-
- mailbox = r.json()
- conversations = [diaspy.conversations.Conversation(
- str(conversation['conversation']['id']), self) for
- conversation in mailbox]
-
- return conversations
-