add comment about missing protocol handling in MessageCryptoStructureDetector
This commit is contained in:
parent
6ececc378a
commit
688169077d
1 changed files with 2 additions and 0 deletions
|
@ -228,6 +228,7 @@ public class MessageCryptoStructureDetector {
|
|||
|
||||
String protocolParameter = MimeUtility.getHeaderParameter(part.getContentType(), PROTOCOL_PARAMETER);
|
||||
|
||||
// for partially downloaded messages the protocol parameter isn't yet available, so we'll just assume it's ok
|
||||
boolean dataUnavailable = protocolParameter == null && mimeMultipart.getBodyPart(0).getBody() == null;
|
||||
boolean protocolMatches = isSameMimeType(protocolParameter, mimeMultipart.getBodyPart(1).getMimeType());
|
||||
return dataUnavailable || protocolMatches;
|
||||
|
@ -247,6 +248,7 @@ public class MessageCryptoStructureDetector {
|
|||
|
||||
String protocolParameter = MimeUtility.getHeaderParameter(part.getContentType(), PROTOCOL_PARAMETER);
|
||||
|
||||
// for partially downloaded messages the protocol parameter isn't yet available, so we'll just assume it's ok
|
||||
boolean dataUnavailable = protocolParameter == null && mimeMultipart.getBodyPart(1).getBody() == null;
|
||||
boolean protocolMatches = isSameMimeType(protocolParameter, mimeMultipart.getBodyPart(0).getMimeType());
|
||||
return dataUnavailable || protocolMatches;
|
||||
|
|
Loading…
Reference in a new issue