Encode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header.
(msg)
| 34 | |
| 35 | |
| 36 | def encode_quopri(msg): |
| 37 | """Encode the message's payload in quoted-printable. |
| 38 | |
| 39 | Also, add an appropriate Content-Transfer-Encoding header. |
| 40 | """ |
| 41 | orig = msg.get_payload(decode=True) |
| 42 | encdata = _qencode(orig) |
| 43 | msg.set_payload(encdata) |
| 44 | msg['Content-Transfer-Encoding'] = 'quoted-printable' |
| 45 | |
| 46 | |
| 47 | def encode_7or8bit(msg): |
nothing calls this directly
no test coverage detected
searching dependent graphs…