Bug 332915

Summary: RoleMessageHasAttachments: ignore signed messages
Product: [Applications] trojita Reporter: Jan Kundrát <jkt>
Component: CoreAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan Kundrát 2014-04-01 16:02:59 UTC
When checking whether a message has attachments, the multipart/signed TreeItemPart should be skipped and instead its children shall be processed.
Comment 1 Jan Kundrát 2014-04-04 11:55:29 UTC
Git commit 3d3eaced989b8d77a21113b4806fecb0faabb302 by Jan Kundrát.
Committed on 03/04/2014 at 18:24.
Pushed by jkt into branch 'master'.

Improve detecting of attachments

This patch makes it "ignore" single-part multipart/* and any multipart/signed.
In any of these cases, the actual nested MIME part is checked.

Support for proper handling of multipart/alternative got added as well.

v2: Refactoring, and disregard any multipart altogether, i.e. just look at the
nested body parts. See inline comments for details.

Thanks to Thomas Lübking & Stephan Platz for their review.
REVIEW: 117360

M  +37   -29   src/Imap/Model/MailboxTree.cpp
M  +1    -0    src/Imap/Model/MailboxTree.h

http://commits.kde.org/trojita/3d3eaced989b8d77a21113b4806fecb0faabb302