'Handle a QUIT command.
Remove any messages marked for deletion, issue a successful response,
and drop the connection.'

def do_QUIT(self):

    if self.mbox:
        self.mbox.sync()
    self.successResponse()
    self.transport.loseConnection()
