Message93935
import os
try:
from email.mime.multipart import MIMEMultipart
except ImportError:
from email.MIMEMultipart import MIMEMultipart
m = MIMEMultipart('form-data')
print m.items()
m.as_string()
print m.items()
print out:
[('Content-Type', 'multipart/form-data'), ('MIME-Version', '1.0')]
[('Content-Type', 'multipart/form-data;
boundary="===============0836597002796039051=="'), ('MIME-Version', '1.0')]
The latter is correct, the former is not - it is missing the boundary!
items() should behave the same regardless of whether or not as_string()
has been called.
Confirmed in 2.4 and 2.6 |
|
Date |
User |
Action |
Args |
2009-10-13 18:58:07 | jnelson | set | recipients:
+ jnelson |
2009-10-13 18:58:06 | jnelson | set | messageid: <1255460286.78.0.388078271026.issue7119@psf.upfronthosting.co.za> |
2009-10-13 18:58:05 | jnelson | link | issue7119 messages |
2009-10-13 18:58:04 | jnelson | create | |
|