+ Headers are folded using the Header folding algorithm, which preserves existing line breaks in the value, and wraps each resulting line to the max_line_length. Non-ASCII binary data are CTE encoded using the unknown-8bit charset.
(self, name, value)
| 316 | return self._sanitize_header(name, value) |
| 317 | |
| 318 | def fold(self, name, value): |
| 319 | """+ |
| 320 | Headers are folded using the Header folding algorithm, which preserves |
| 321 | existing line breaks in the value, and wraps each resulting line to the |
| 322 | max_line_length. Non-ASCII binary data are CTE encoded using the |
| 323 | unknown-8bit charset. |
| 324 | |
| 325 | """ |
| 326 | return self._fold(name, value, sanitize=True) |
| 327 | |
| 328 | def fold_binary(self, name, value): |
| 329 | """+ |