Which tells us, because of the main type “ multipart“, that the body of this email consists of several mime parts separated by the boundary “ 0123456789boundaryabcdef“. A typical email header is To: the header name “ To” and the header value “ In the case of multipart emails, there also is a (MIME) header Content-Type: multipart/alternative boundary= 0123456789boundaryabcdef Even though these RFC’s are clear in their own way, an illustration might help (we focus on multipart emails only) to understand why Python’s email library got fooled.Įmails essentially consist of two parts: the headers and the body. Left: Outlook Web does not show the attachment Right: Thunderbird does show the attachmentĮmails do have a certain structure, which is described nicely in RFC #822, RFC #2822, RFC #5322, RFC #2045, RFC #2046, RFC #2047, RFC #2049, RFC #2231, RFC #4288 and RFC #4289.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |