title: Python email - 8bit MIME support
body: <p>I'm writing a simple MUA application, and I have a troubles with generating message.</p>
  
  <p>I want to my program automatically detect whether the SMTP server supports <code>8bit MIME</code>, and if yes, then it'll generate a message, where the part with plain text will be encoded on 8bits. In MIME header it should looks like that: </p>
  
  <p><code>Content-Type: text/plain; charset=utf-8; format=flowed
  Content-Transfer-Encoding: 8bit</code></p>
  
  <p>The major problem is that, python3.4 smtplib hasn't <code>8-bit encoder</code>, just only <code>base64</code>, and <code>quoted printable</code></p>
  
  <p>In my case it looks that:</p>
  
  <pre><code>from email.mime.multipart import MIMEMultipart
  from email.mime.text import MIMEText
  msg = MIMEMultipart()
  msg['From'] = 'someone@example.com'
  msg['To'] = 'someone@example.com'
  msg['Subject'] = 'subject'
  
  text = MIMEText("text here".encode('utf-8'), _charset='utf-8')
  
  msg.attach(text)
  
  # then sending...
  </code></pre>
  
  <p>The <code>text.as_string()</code> call returns</p>
  
  <pre><code>'Content-Type: text/plain; charset="utf-8"\nMIME-Version: 1.0\nContent-Transfer-Encoding: base64\n\ndGV4dCBoZXJl\n'
  </code></pre>
  
  <p>This message is quite good, but I'd want to have <code>8-bit</code> enconding, not <code>base64</code>.</p>
  
  <p>The question is am I really convicted to use <code>base64</code> enconding?</p>
  
  <p>In <code>email.encoders</code> are only <code>encode_base64</code> and <code>encode_quopri</code> functions</p>