'Builds and returns another message object with specified text.
The to, from and thread properties of new message are pre-set as reply to this message.'

def buildReply(self, text=None):

    m = Message(to=self.getFrom(), frm=self.getTo(), body=text)
    th = self.getThread()
    if th:
        m.setThread(th)
    return m
