'Retrieve message with UID from the IMAP server (incl body).
After this function all CRLFs will be transformed to \'
:returns: the message body or throws and OfflineImapError
(probably severity MESSAGE) if e.g. no message with
this UID could be found.'

def getmessage(self, uid):

    data = self._fetch_from_imap(str(uid), self.retrycount)
    data = data[0][1].replace(CRLF, '\n')
    if (len(data) > 200):
        dbg_output = ('%s...%s' % (str(data)[:150], str(data)[(-50):]))
    else:
        dbg_output = data
    self.ui.debug('imap', ("Returned    object    from    fetching    %d:    '%s'" % (uid, dbg_output)))
    return data
