def status(imap_account):
    for directory_info in list_dir(imap_account):
        status, data = imap_account.status(directory_info['directory'],
                                           '(MESSAGES RECENT UNSEEN)')
        if status != const.STATUS_OK:
            log.warning('Wrong status : {}'.format(repr(data)))
            continue
        status_match = STATUS_RE.match(data[0])
        if status_match is None:
            log.warning('Ignoring directory : {}'.format(repr(data)))
            continue
        group_dict = status_match.groupdict()
        yield {
            'directory': string.decode(group_dict['directory']),
            'unseen': group_dict['mail_unseen'],
            'count': group_dict['mail_count'],
            'recent': group_dict['mail_recent'],
        }
Generates a cryptographically secure nonce salt in ascii
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/__init__.py/status--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/hashers.py/BasePasswordHasher.salt