Commit 7134c6b7 authored by Damien Caliste's avatar Damien Caliste

[libqmfclient] Add recursion when looking for attachements MER#1574.

parent a7050dd7
......@@ -1159,6 +1159,9 @@ namespace findAttachments
if (container.multipartType() == QMailMessagePart::MultipartMixed) {
inMultipartMixed(container, found, hasAttachments);
}
if (container.multipartType() == QMailMessagePart::MultipartAlternative) {
inMultipartMixed(container, found, hasAttachments);
}
if (container.multipartType() == QMailMessagePart::MultipartSigned) {
inMultipartSigned(container, found, hasAttachments);
}
......@@ -1206,6 +1209,10 @@ namespace findAttachments
case QMailMessagePart::MultipartNone:
inMultipartNone(part, found, hasAttachments);
break;
case QMailMessagePart::MultipartMixed:
case QMailMessagePart::MultipartAlternative:
inMultipartMixed(part, found, hasAttachments);
break;
default:
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment