(value)
return dot_atom, value
dot-atom = [CFWS] dot-atom-text [CFWS]

    Any place we can have a dot atom, we could instead have an rfc2047 encoded
    word.
dot-atom = [CFWS] dot-atom-text [CFWS]
dot - atom = [ CFWS ] dot - atom - text [ CFWS ]
def get_dot_atom(value):
    """ dot-atom = [CFWS] dot-atom-text [CFWS]

    Any place we can have a dot atom, we could instead have an rfc2047 encoded
    word.
    """
    dot_atom = DotAtom()
    if value[0] in CFWS_LEADER:
        token, value = get_cfws(value)
        dot_atom.append(token)
    if value.startswith('=?'):
        try:
            token, value = get_encoded_word(value)
        except errors.HeaderParseError:
            # XXX: need to figure out how to register defects when
            # appropriate here.
            token, value = get_dot_atom_text(value)
    else:
        token, value = get_dot_atom_text(value)
    dot_atom.append(token)
    if value and value[0] in CFWS_LEADER:
        token, value = get_cfws(value)
        dot_atom.append(token)
    return dot_atom, value
def get_dot_atom ( value ) : dot_atom = DotAtom ( ) if value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) dot_atom . append ( token ) if value . startswith ( '=?' ) : try : token , value = get_encoded_word ( value ) except errors . HeaderParseError : # XXX: need to figure out how to register defects when # appropriate here. token , value = get_dot_atom_text ( value ) else : token , value = get_dot_atom_text ( value ) dot_atom . append ( token ) if value and value [ 0 ] in CFWS_LEADER : token , value = get_cfws ( value ) dot_atom . append ( token ) return dot_atom , value