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/03/15 02:00:28 UTC
[james-project] 10/10: JAMES-3720 Fix fecht -> fetch typo
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch 3.7.x
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 9e6c5b0c44b2110cfa9a0e868d49844840c40312
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Mar 7 17:36:27 2022 +0700
JAMES-3720 Fix fecht -> fetch typo
(cherry picked from commit c56639b97c6f61d9b2312eadd1268cbe51ef2dd9)
---
.../apache/james/webadmin/service/MailRepositoryStoreService.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java b/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
index fec065e..ea0dee4 100644
--- a/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
+++ b/server/protocols/webadmin/webadmin-mailrepository/src/main/java/org/apache/james/webadmin/service/MailRepositoryStoreService.java
@@ -87,7 +87,7 @@ public class MailRepositoryStoreService {
}
public Optional<MailDto> retrieveMail(MailRepositoryPath path, MailKey mailKey, Set<AdditionalField> additionalAttributes) throws MailRepositoryStore.MailRepositoryStoreException, MessagingException, InaccessibleFieldException {
- Optional<Mail> mail = fecthMail(path, mailKey);
+ Optional<Mail> mail = fetchMail(path, mailKey);
try {
return mail.map(Throwing.function((Mail aMail) -> MailDto.fromMail(aMail, additionalAttributes)).sneakyThrow());
} finally {
@@ -96,7 +96,7 @@ public class MailRepositoryStoreService {
}
public Optional<MimeMessage> retrieveMessage(MailRepositoryPath path, MailKey mailKey) throws MailRepositoryStore.MailRepositoryStoreException, MessagingException {
- Optional<Mail> mail = fecthMail(path, mailKey);
+ Optional<Mail> mail = fetchMail(path, mailKey);
try {
return mail.map(Throwing.function(Mail::getMessage).sneakyThrow());
} finally {
@@ -127,7 +127,7 @@ public class MailRepositoryStoreService {
return repositories.stream();
}
- private Optional<Mail> fecthMail(MailRepositoryPath path, MailKey mailKey) throws MailRepositoryStore.MailRepositoryStoreException, MessagingException {
+ private Optional<Mail> fetchMail(MailRepositoryPath path, MailKey mailKey) throws MailRepositoryStore.MailRepositoryStoreException, MessagingException {
return getRepositories(path)
.map(Throwing.function((MailRepository repository) -> Optional.ofNullable(repository.retrieve(mailKey))).sneakyThrow())
.flatMap(Optional::stream)
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org