chibenwa commented on code in PR #3213:
URL: https://github.com/apache/james-project/pull/3213#discussion_r4133492327


##########
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:
   > 
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!
   
   We try to sometime have good ideas ^^



-- 
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]

Reply via email to