From 0d9a2c0116627821f020574d248c76f47f59ca3a Mon Sep 17 00:00:00 2001 From: Marcel May Date: Thu, 3 Oct 2024 16:00:17 +0200 Subject: [PATCH] Clarified GMU.getReceivedMessagesForDomain usage for mails with multiple recipients ( #675 ) --- .../java/com/icegreen/greenmail/base/GreenMailOperations.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/greenmail-core/src/main/java/com/icegreen/greenmail/base/GreenMailOperations.java b/greenmail-core/src/main/java/com/icegreen/greenmail/base/GreenMailOperations.java index 88668cc95c..a3f9b4d212 100644 --- a/greenmail-core/src/main/java/com/icegreen/greenmail/base/GreenMailOperations.java +++ b/greenmail-core/src/main/java/com/icegreen/greenmail/base/GreenMailOperations.java @@ -86,6 +86,10 @@ public interface GreenMailOperations { /** * Gets all messages containing given domain. + *

+ * Note: + * This operates on the raw messages ignoring the post box user. + * A CC-ed email would therefore show up multiple times for each receiving user. * * @param domain the domain, such as 'icegreen.com' or 'some.example.com' * @return Returns all received messages for given domain.