Mercurial > hg > bts-webui
changeset 38:b024beadbcf5 draft
Fixed small bug for messages with no content-disposition
author | marga |
---|---|
date | Wed, 22 Aug 2007 23:43:11 +0000 |
parents | 8e121214685c |
children | 62ea09460fc1 |
files | bts_webui/amancay/views.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bts_webui/amancay/views.py +++ b/bts_webui/amancay/views.py @@ -113,10 +113,10 @@ for part in content.walk(): if (part.get_content_maintype() == "multipart"): continue - if (part["content-disposition"] == "inline"): + if (part["content-disposition"] == "attachment"): + message["body"] += "[attach: %s]" % part.get_filename() + else: message["body"] += part.get_payload(decode=1) + "\n" - else: - message["body"] += "[attach: %s]" % part.get_filename() else: message["body"] = content.get_payload(decode=1)