98
98
def get_messages_by_message_id(self, message_id):
101
99
for msgrow in config.db.store.find(Message, message_id=message_id):
102
100
yield self._msgobj(msgrow)
104
102
def get_messages_by_hash(self, hash):
107
103
# It's possible the hash came from a message header, in which case it
108
104
# will be a Unicode. However when coming from source code, it will
109
105
# always be an 8-string. Coerce to the latter if necessary; it must