diff options
Diffstat (limited to 'framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp')
-rw-r--r-- | framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp b/framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp index 914298b9..a37c8b27 100644 --- a/framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp +++ b/framework/src/domain/mime/mimetreeparser/objecttreeparser.cpp | |||
@@ -278,10 +278,7 @@ QVector<MessagePart::Ptr> ObjectTreeParser::collectAttachmentParts() | |||
278 | return true; | 278 | return true; |
279 | }, | 279 | }, |
280 | [] (const MessagePartPtr &part) { | 280 | [] (const MessagePartPtr &part) { |
281 | if (const auto attachment = dynamic_cast<MimeTreeParser::AttachmentMessagePart*>(part.data())) { | 281 | return part->isAttachment(); |
282 | return true; | ||
283 | } | ||
284 | return false; | ||
285 | }); | 282 | }); |
286 | return contentParts; | 283 | return contentParts; |
287 | } | 284 | } |
@@ -296,7 +293,6 @@ void ObjectTreeParser::decryptParts() | |||
296 | } | 293 | } |
297 | return false; | 294 | return false; |
298 | }); | 295 | }); |
299 | print(); | ||
300 | ::collect(mParsedPart, | 296 | ::collect(mParsedPart, |
301 | [] (const MessagePartPtr &part) { return true; }, | 297 | [] (const MessagePartPtr &part) { return true; }, |
302 | [] (const MessagePartPtr &part) { | 298 | [] (const MessagePartPtr &part) { |