prosgarz35 commented on code in PR #3213:
URL: https://github.com/apache/james-project/pull/3213#discussion_r4132673517
##########
server/mailrepository/mailrepository-blob/src/main/scala/org/apache/james/mailrepository/blob/BlobMailRepository.scala:
##########
@@ -169,35 +180,96 @@ class BlobMailRepository(val mailMetaDataBlobStore:
BlobStore,
.map(mailPartsId => mailPartsId.toMailKey)
.block()
+ oldMimeId.foreach(mimeId =>
+ SMono.fromPublisher(mimeMessageStore.delete(mimeId))
+ .retryWhen(Retry.backoff(2, Duration.ofMillis(50)))
+ .doOnError(e => LOGGER.warn("Failed to delete superseded MIME blobs {}
and {} for mail {} in {}",
+ mimeId.getHeaderBlobId.asString(), mimeId.getBodyBlobId.asString(),
mc.getName, url.asString(), e))
+ .onErrorResume(_ => SMono.empty)
+ .block()
+ )
Review Comment:
I surely like idea, but not sure i can make so complicated task, i try it !
So really that needed? We have something already like v2 ?
https://james.staged.apache.org/james-project/3.10.0/servers/distributed/operate/webadmin.html#_moving_mails_from_a_mail_repository_to_another
its good feature!
--
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]