code: def encode_quopri(msg):
      
      orig = msg.get_payload()
      encdata = _qencode(orig)
      msg.set_payload(encdata)
      msg['Content-Transfer-Encoding'] = 'quoted-printable'
docs: Encode the message's payload in quoted-printable.
  
      Also, add an appropriate Content-Transfer-Encoding header.