'(typ, [data]) = list(directory=\'""\', pattern=\'*\')
List mailbox names in directory matching pattern.
\'data\' is list of LIST responses.
NB: for \'pattern\':
% matches all except separator ( so LIST "" "%" returns names at root)
* matches all (so LIST "" "*" returns whole directory tree from root)'

def list(self, directory='""', pattern='*', **kw):

    name = 'LIST'
    kw['untagged_response'] = name
    return self._simple_command(name, directory, pattern, **kw)
