/external/python/cpython2/Lib/email/ |
D | header.py | 121 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 …]
|
D | quoprimime.py | 115 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:
|
D | base64mime.py | 65 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
|
D | charset.py | 367 return email.quoprimime.header_encode(s, cset, maxlinelen=None) 374 return email.quoprimime.header_encode(s, cset, maxlinelen=None)
|
D | generator.py | 164 v, maxlinelen=self._maxheaderlen, header_name=h).encode()
|
/external/python/cpython2/Doc/library/ |
D | email.header.rst | 51 .. 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/ |
D | test_email_renamed.py | 708 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 …]
|
D | test_email.py | 777 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/ |
D | HISTORY | 5653 has changed slightly so that an explicit maxlinelen value is always
|