chibenwa commented on a change in pull request #351:
URL: https://github.com/apache/james-project/pull/351#discussion_r606154317



##########
File path: mdn/src/main/java/org/apache/james/mdn/MDN.java
##########
@@ -131,9 +131,9 @@ public static MDN parse(Message message) throws 
MDNParseException {
                     .map(report -> MDN.builder()
                         .humanReadableText(humanReadableText)
                         .report(report)
-                        
.includeOriginalMessage(isIncludeOriginalMessage(bodyParts))
+                        .message(Optional.of(message))

Review comment:
       No, we should 
    - look if we have a third body part
    - validate that it have a `message/rfc822` Content-Type header




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to