Skip to content

Commit

Permalink
Add fallback handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Rohrbach authored and bbottema committed Dec 18, 2019
1 parent 2e56b57 commit cee5b13
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,11 @@ public Map<String, OutlookFileAttachment> fetchCIDMap() {
for (final OutlookAttachment attachment : getOutlookAttachments()) {
if (attachment instanceof OutlookFileAttachment) {
final OutlookFileAttachment fileAttachment = (OutlookFileAttachment) attachment;
tryAddCid(cidMap, html, fileAttachment, fileAttachment.getContentId());
if (!tryAddCid(cidMap, html, fileAttachment, fileAttachment.getContentId())) {
if (!tryAddCid(cidMap, html, fileAttachment, fileAttachment.getFilename())) {
tryAddCid(cidMap, html, fileAttachment, fileAttachment.getLongFilename());
}
}
}
}
}
Expand Down

0 comments on commit cee5b13

Please sign in to comment.