Lines Matching full:part

36 semantically meaningful value of that part of the parse subtree.  The value of
145 """True if all top level tokens of this part may be RFC2047 encoded."""
146 return all(part.as_ew_allowed for part in self)
552 token_type = 'obs-local-part'
600 token_type = 'local-part'
672 # This is part of the "handle quoted extended parameters" hack.
1445 """ local-part = dot-atom / quoted-string / obs-local-part
1454 "expected local-part but found '{}'".format(value))
1469 if obs_local_part.token_type == 'invalid-obs-local-part':
1471 "local-part is not dot-atom, quoted-string, or obs-local-part"))
1474 "local-part is not a dot-atom (contains CFWS)"))
1480 "local-part contains non-ASCII characters)"))
1484 """ obs-local-part = word *("." word)
1520 "Invalid leading '.' in local part"))
1525 "Invalid trailing '.' in local part"))
1527 obs_local_part.token_type = 'invalid-obs-local-part'
1636 """ addr-spec = local-part "@" domain
1644 "addr-spec local part with no domain"))
2072 # obs-id-left is same as local-part of add-spec.
2084 # Even though there is no id-right, if the local part
2776 part = parts.pop(0)
2777 if part is end_ew_not_allowed:
2780 tstr = str(part)
2781 if part.token_type == 'ptext' and set(tstr) & SPECIALS:
2789 for x in part.all_defects):
2796 if part.token_type == 'mime-parameters':
2798 _fold_mime_parameters(part, lines, maxlen, encoding)
2801 if not part.as_ew_allowed:
2804 if part.syntactic_break:
2805 encoded_part = part.fold(policy=policy)[:-len(policy.linesep)]
2819 if not hasattr(part, 'encode'):
2821 parts = list(part) + parts
2826 part.ew_combine_allowed, charset)
2832 # This part is too long to fit. The RFC wants us to break at
2835 if (part.syntactic_break and
2838 if newline or part.startswith_fws():
2842 if not hasattr(part, 'encode'):
2844 newparts = list(part)
2845 if not part.as_ew_allowed:
2850 if part.as_ew_allowed and not wrap_as_ew_blocked:
2853 parts.insert(0, part)
2858 if newline or part.startswith_fws():
2930 def _fold_mime_parameters(part, lines, maxlen, encoding):
2931 """Fold TokenList 'part' into the 'lines' list as mime parameters.
2945 for name, value in part.params: