Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AbstractMailReceiver.receive returns MimeMessage with outdated flags #9632

dru1 started this conversation in General
Discussion options

Hi,

it looks like after merging PR#9546 the returned values from AbstractMailReceiver#receive no longer reflect the current state of the MimeMessage 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 and spring-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

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Converted to issue.
Apparently we need to copy those flags after setting them.
The point of the change to issue those flags back to the IMAP server before copying messages into IntegrationMimeMessage instances.

You must be logged in to vote
1 reply
@dru1
Comment options

Sounds good. I'll stick with version 6.3.4 until this issue is resolved.

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.