'Handle a RSET command.
Unmark any messages that have been flagged for deletion.'

def do_RSET(self):

    try:
        self.mbox.undeleteMessages()
    except:
        log.err()
        self.failResponse()
    else:
        self._highest = 0
        self.successResponse()
