jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
336 stars 73 forks source link

Fix issue #55 #74

Open tornado80 opened 2 years ago

tornado80 commented 2 years ago

Hello. This is my first contribution to open source. I have addressed the issue #55 by unification of message text (plain or html) into a single 'alternative' Multipart MIME, to which text and html MIMEs could be attached. Now the plain text will not disappear when attachments exist. The structure of the whole message MIME would be:

multipart/mixed
  multipart/alternative
    text/plain
    text/html
  attachment1_type/subtype
  ...