Skip to content

Commit

Permalink
ECASE-26292: Ignore decoding errors when extracting header value (#59)
Browse files Browse the repository at this point in the history
* ECASE-26292: Ignore decoding errors when extracting header value
  • Loading branch information
fm-fivium authored Apr 9, 2024
1 parent 5af2b1d commit ff4be24
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ private void readMessageBody(){

while(lHeaderEnumeration.hasMoreElements()){
Header lCurrentHeader = Header.class.cast(lHeaderEnumeration.nextElement());
mHeaderMap.put(lCurrentHeader.getName(), decodeHeaderValue(lCurrentHeader));
try {
mHeaderMap.put(lCurrentHeader.getName(), decodeHeaderValue(lCurrentHeader));
}
catch(MessagingException ex) {
mLogger.warn("Failed to decode value for header {}", lCurrentHeader.getName(), ex);
}
}

stripAttachments(lMimeMessage);
Expand Down

0 comments on commit ff4be24

Please sign in to comment.