'enable_compression()
Ask the server to start compressing the connection.
Should be called from user of this class after instantiation, as in:
if \'COMPRESS=DEFLATE\' in imapobj.capabilities:
imapobj.enable_compression()'

def enable_compression(self):

    try:
        (typ, dat) = self._simple_command('COMPRESS', 'DEFLATE')
        if (typ == 'OK'):
            self.start_compressing()
            if __debug__:
                self._log(1, 'Enabled    COMPRESS=DEFLATE')
    finally:
        self._release_state_change()
