jadolg / webpymail

Automatically exported from code.google.com/p/webpymail
GNU General Public License v3.0
0 stars 0 forks source link

HTML body and HTML attachment #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've noticed that if I attach HTML as file, it also displays as Body html view.
Message structure is:

None       MULTIPART/MIXED
1          MULTIPART/ALTERNATIVE
1.1        TEXT/PLAIN
1.2        TEXT/HTML
2          TEXT/HTML

Maybe the could be separated? I mean the second HTML (with No 2) could be 
placed as attachment.

Original issue reported on code.google.com by akimov.alex on 26 Aug 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Now the correct behaviour is implemented in r42 (hopefully). The content 
disposition of the mail part is checked and if it's an attachment a download 
link is displayed. To do this I had to mess around with the BODYSTRUCTURE code, 
this code is by nature a bit of a mind twister, so this changes must be tested 
for a while...

Original comment by hguerreiro@gmail.com on 27 Aug 2010 at 12:18

GoogleCodeExporter commented 9 years ago
Well, it works now, and even more: before this fix one message with attached 
.py file hide this attachment. But now it's there, thanks.

And what does parsefetch classes based one? Is this inspired by any RFC? I'd 
like to read something about message e-mails envelopes, can you give any 
advices? Or it's all from IMAP RFC?

// And excuse me for my lame English in all comments.

Original comment by akimov.alex on 27 Aug 2010 at 7:00