chibenwa commented on code in PR #2583:
URL: https://github.com/apache/james-project/pull/2583#discussion_r1922179985
##########
mailbox/opensearch/src/main/java/org/apache/james/mailbox/opensearch/json/IndexableMessage.java:
##########
@@ -135,8 +135,8 @@ private Mono<IndexableMessage> instantiateIndexedMessage()
throws IOException, M
.asMimePart(textExtractor)
.map(parsingResult -> {
- Optional<String> bodyText =
parsingResult.locateFirstTextBody();
- Optional<String> bodyHtml =
parsingResult.locateFirstHtmlBody();
+ Optional<String> bodyText =
parsingResult.locateFirstTextBody().map(SearchUtil::removeGreaterThanCharacters);
+ Optional<String> bodyHtml =
parsingResult.locateFirstHtmlBody().map(SearchUtil::removeGreaterThanCharacters);
Review Comment:
Take this message:

The corresponding HTML body is:

Which do not quote with `>...` but with `<blockquote>...</blockquote>` so
removing `>>>` at the beginning of line for `text/html` is indeed a non-sense
with well-formatted non testing data.
Can you provide us with real world data where removing `>>>` for HTML body
makes sense?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]