+ 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)
| 324 | return self._sanitize_header(name, value) |
| 325 | |
| 326 | def fold(self, name, value): |
| 327 | """+ |
| 328 | Headers are folded using the Header folding algorithm, which preserves |
| 329 | existing line breaks in the value, and wraps each resulting line to the |
| 330 | max_line_length. Non-ASCII binary data are CTE encoded using the |
| 331 | unknown-8bit charset. |
| 332 | |
| 333 | """ |
| 334 | return self._fold(name, value, sanitize=True) |
| 335 | |
| 336 | def fold_binary(self, name, value): |
| 337 | """+ |