def fetch_message(self, msgnum):
self.imap_connect()<EOL>status, data = self.mailbox.fetch(msgnum, "<STR_LIT>")<EOL>self.imap_disconnect()<EOL>for response_part in data:<EOL><INDENT>if isinstance(response_part, tuple):<EOL><INDENT>return email.message_from_string(response_part[<NUM_LIT:1>])<EOL><DEDENT><DEDENT>
Given a message number, return the Email.Message object.
@Params
msgnum - message number to find
@Returns
Email.Message object for the given message number