def get_conditions(config):
    """
    Takes a parsed config file, and converts it into a dictionary.
    Although somewhat useless now, it could be useful if more conditions
        for email notification are wanted.
    """
    attributes = {'email_on_bad_exit': config.getboolean('Email',
        'email_on_bad_exit'), 'email_on_stderr': config.getboolean('Email',
        'email_on_stderr')}
    return attributes
