This is an automated email from the ASF dual-hosted git repository.
rcordier 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 7b829b7 JAMES-2993 Preview.Factory - change modifier access
7b829b7 is described below
commit 7b829b76fb3425967ff7b5d3bff3757f82530bdc
Author: Tung TRAN <[email protected]>
AuthorDate: Mon Jun 21 10:32:12 2021 +0700
JAMES-2993 Preview.Factory - change modifier access
---
.../src/main/java/org/apache/james/jmap/api/model/Preview.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/model/Preview.java
b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/model/Preview.java
index 365cc92..e26dbba 100644
---
a/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/model/Preview.java
+++
b/server/data/data-jmap/src/main/java/org/apache/james/jmap/api/model/Preview.java
@@ -60,11 +60,11 @@ public class Preview {
return fromInputStream(new
ByteArrayInputStream(messageAsString.getBytes(StandardCharsets.UTF_8)));
}
- private Preview fromInputStream(InputStream inputStream) throws
IOException {
+ public Preview fromInputStream(InputStream inputStream) throws
IOException {
return fromMime4JMessage(parse(inputStream));
}
- private Preview fromMime4JMessage(Message mimeMessage) throws
IOException {
+ public Preview fromMime4JMessage(Message mimeMessage) throws
IOException {
MessageContentExtractor.MessageContent messageContent =
messageContentExtractor.extract(mimeMessage);
return messageContent.extractMainTextContent(htmlTextExtractor)
.map(Preview::compute)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]