Replies: 1 comment 1 reply
-
Converted to issue. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
it looks like after merging PR#9546 the returned values from
AbstractMailReceiver#receive
no longer reflect the current state of theMimeMessage
after the receiving process.The message flags of the received messages are outdated and don't contain the changes of
AbstractMailReceiver#setMessageFlags
, because the flags are only applied to the original message and not the copy (AbstractMailReceiver.IntegrationMimeMessage
).The behavior change can be verified by debugging the returned values from
receiver.receive()
in the new unit test method. The flags are empty in the debugger, while the original messages (msg1
,msg2
) contain the flags\Seen
andspring-integration-mail-adapter
.Was this change in behavior intentional? This looks like a bug to me, because message processing after the initial receiving step now works with an outdated state.
Best regards,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions