Skip to content

Conversation

@artembilan
Copy link
Member

Related to https://stackoverflow.com/questions/71667731/spring-integration-mimemessage-gmail-folder-is-not-open-exception

If no mail messages pulled from the folder or all of them are filtered out,
there is nothing to produce downstream.
Therefore, always close the folder in the end of AbstractMailReceiver.receive()
when no messages and even if autoCloseFolder == false

Cherry-pick to 5.5.x

Related to https://stackoverflow.com/questions/71667731/spring-integration-mimemessage-gmail-folder-is-not-open-exception

If no mail messages pulled from the folder or all of them are filtered out,
there is nothing to produce downstream.
Therefore, always close the folder in the end of `AbstractMailReceiver.receive()`
when no messages and even if `autoCloseFolder == false`

**Cherry-pick to `5.5.x`**
@garyrussell garyrussell merged commit 802d217 into spring-projects:main Apr 7, 2022
@garyrussell
Copy link
Contributor

...and cherry-picked as c75be10

@artembilan artembilan deleted the Close_mail_folder_no_messages branch May 15, 2023 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants