You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/05/31 08:07:30 UTC
[james-project] branch master updated: [PERF] JMAP RFC-8621 Email/get full: do not parse mime message twice
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new efcab601d5 [PERF] JMAP RFC-8621 Email/get full: do not parse mime message twice
efcab601d5 is described below
commit efcab601d5a6a71257ec476cbcd4d0625c2f93c9
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri May 27 16:29:32 2022 +0700
[PERF] JMAP RFC-8621 Email/get full: do not parse mime message twice
---
.../jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/Email.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/Email.scala b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/Email.scala
index d984065bc1..c21fb26e8c 100644
--- a/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/Email.scala
+++ b/server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/mail/Email.scala
@@ -482,7 +482,7 @@ private class EmailFullViewFactory @Inject()(zoneIdProvider: ZoneIdProvider, pre
bodyStructure <- EmailBodyPart.of(messageId, mime4JMessage)
bodyValues <- extractBodyValues(htmlTextExtractor)(bodyStructure, request)
blobId <- BlobId.of(messageId)
- preview <- Try(previewFactory.fromMessageResult(firstMessage))
+ preview <- Try(previewFactory.fromMime4JMessage(mime4JMessage))
keywords <- LENIENT_KEYWORDS_FACTORY.fromFlags(firstMessage.getFlags)
} yield {
EmailFullView(
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org