Home
last modified time | relevance | path

Searched refs:maxlinelen (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython2/Lib/email/
Dheader.py121 def make_header(decoded_seq, maxlinelen=None, header_name=None, argument
133 h = Header(maxlinelen=maxlinelen, header_name=header_name,
146 maxlinelen=None, header_name=None, argument
184 if maxlinelen is None:
185 maxlinelen = MAXLINELEN
189 self._firstlinelen = maxlinelen
193 self._firstlinelen = maxlinelen - len(header_name) - 2
196 self._maxlinelen = maxlinelen - cws_expanded_len
288 def _split(self, s, charset, maxlinelen, splitchars): argument
294 if elen <= maxlinelen:
[all …]
Dquoprimime.py115 maxlinelen=76, eol=NL): argument
153 if maxlinelen is None:
157 max_encoded = maxlinelen - len(charset) - MISC_LEN - 1
178 def encode(body, binary=False, maxlinelen=76, eol=NL): argument
233 if len(encoded_line) + len(c) >= maxlinelen:
242 if len(encoded_line) + len(prev) > maxlinelen:
Dbase64mime.py65 maxlinelen=76, eol=NL): argument
101 max_encoded = maxlinelen - len(charset) - MISC_LEN
122 def encode(s, binary=True, maxlinelen=76, eol=NL): argument
143 max_unencoded = maxlinelen * 3 // 4
Dcharset.py367 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
374 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
Dgenerator.py164 v, maxlinelen=self._maxheaderlen, header_name=h).encode()
/external/python/cpython2/Doc/library/
Demail.header.rst51 .. class:: Header([s[, charset[, maxlinelen[, header_name[, continuation_ws[, errors]]]]]])
68 The maximum line length can be specified explicitly via *maxlinelen*. For
71 field in *header_name*. The default *maxlinelen* is 76, and the default value
163 .. function:: make_header(decoded_seq[, maxlinelen[, header_name[, continuation_ws]]])
173 instance. Optional *maxlinelen*, *header_name*, and *continuation_ws* are as in
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py708 h = Header(hstr, maxlinelen=78, header_name='Received',
2619 eq(base64mime.encode('xxxx ' * 20, maxlinelen=40), """\
2626 eq(base64mime.encode('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2644 eq(he('xxxx ' * 20, maxlinelen=40), """\
2652 eq(he('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2724 eq(he('xxxx ' * 20, maxlinelen=40), """\
2731 eq(he('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2753 eq(quoprimime.encode('xxxx ' * 20, maxlinelen=40), """\
2758 eq(quoprimime.encode('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2852 maxlinelen=76)
[all …]
Dtest_email.py777 h = Header(hstr, maxlinelen=78, header_name='Received',
2857 eq(base64MIME.encode('xxxx ' * 20, maxlinelen=40), """\
2864 eq(base64MIME.encode('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2882 eq(he('xxxx ' * 20, maxlinelen=40), """\
2890 eq(he('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2962 eq(he('xxxx ' * 20, maxlinelen=40), """\
2969 eq(he('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
2991 eq(quopriMIME.encode('xxxx ' * 20, maxlinelen=40), """\
2996 eq(quopriMIME.encode('xxxx ' * 20, maxlinelen=40, eol='\r\n'), """\
3093 maxlinelen=76)
[all …]
/external/python/cpython2/Misc/
DHISTORY5653 has changed slightly so that an explicit maxlinelen value is always