'(typ, [data]) = close()
Close currently selected mailbox.
Deleted messages are removed from writable mailbox.
This is the recommended command before \'LOGOUT\'.'

def close(self, **kw):

    if (self.state != 'SELECTED'):
        raise self.error('No    mailbox    selected.')
    try:
        (typ, dat) = self._simple_command('CLOSE')
    finally:
        self.state = AUTH
        if __debug__:
            self._log(1, 'state    =>    AUTH')
        self._release_state_change()
    return self._deliver_dat(typ, dat, kw)
