Skip to content
Snippets Groups Projects
Commit 8591e51b authored by Kevin Falcone's avatar Kevin Falcone Committed by Alex Vandiver
Browse files

Work with our new multipart handling

As part of our outlook handling code, we started recursing into
multipart/alternative.  However, if you were multipart/multipart or
something else, and the code doesn't express a preference for text/plain
vs text/html we had a bail out to start at the top again looking for
textual.  Instead, we'll look at the children of this multipart for
anything textual, since that seems to make more sense and leave the
"Search for something textual from the top" for later in the code path.
parent 06ed4b67
No related branches found
No related tags found
No related merge requests found
......@@ -561,6 +561,16 @@ sub _FindPreferredContentObj {
if ( my $first = $plain_parts->First ) {
return $first;
}
} else {
my $parts = $Attachment->Children;
$parts->LimitNotEmpty;
# If we actully found a part, return its content
while (my $part = $parts->Next) {
next unless _IsDisplayableTextualContentType($part->ContentType);
return $part;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment