'payload_pieces' is a list of objects containing strings that when strung
together form the fully-decoded string representation of the mime part.
- The 'filename', 'content_type' and 'description_list' come from the mime
- part parameters.
+ The 'filename', 'content_type', 'content_disposition' and
+ 'description_list' come from the mime part parameters.
+
"""
multipart = False
filename = None
content_type = None
+ content_disposition = None
description_list = None
obj.filename = part.get_filename()
obj.content_type = part.get_content_type()
+ obj.content_disposition = part['content-disposition']
obj.description_list = part['content-description']
if mime_decoded_bytes != None:
replyinfo_obj.target_key = piece.gpg_data.sigs[0]
break
else:
- if piece.piece_type == TxtType.text:
+ if (eddymsg_obj.content_disposition == None \
+ or not eddymsg_obj.content_disposition.startswith("attachment")) \
+ and piece.piece_type == TxtType.text:
replyinfo_obj.msg_to_quote += piece.string