Closed wolever closed 11 years ago
Hello You are not using the right interface, m.get_filename() is the original function from class email.message.Message that is not over written by pyzmail. The pyzmail's way to get the filename of one attachment is this one :
for mailpart in m.mailparts:
print mailpart.filename
other possibilities are :
print m.mailparts[0].filename
pyzmail.parse.get_filename(m)
Regard
To recreate:
The filename should be decoded: