def get_messages(self, **params):
        all_args = [
            "subject", "email", "to", "sender", "from_", "cc", "bcc", "folder", "date_before",
            "date_after", "indexed_before", "indexed_after", "include_thread_size", "include_body",
            "source", "file_name", "file_size_min", "file_size_max", "include_source",
            "include_headers", "include_flags", "body_type", "sort_order",
            "limit", "offset"
        ]

        params = helpers.sanitize_params(params, all_args)

        # workaround to send param "from" even though it's a reserved keyword
        # in python
        if 'sender' in params:
            params['from'] = params['sender']
            del params['sender']

        if 'from_' in params:
            params['from'] = params['from_']
            del params['from_']

        return [
            Message(self, obj) for obj in self._request_uri('messages', params=params)]
List email messages for an account.
dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/resources/account.py/Account.get_messages