Returns a dictionary with EMAIL_* settings from EMAIL_URL.

def config(name='EMAIL_URL', default='console://'):
    """Returns a dictionary with EMAIL_* settings from EMAIL_URL."""
    conf = {}
    s = env(name, default)
    if s:
        conf = parse_email_url(s)
    return conf