INT-2656 - Fix Mail Adapter Exceptions

For reference see: https://jira.springsource.org/browse/INT-2656
This commit is contained in:
Gunnar Hillert
2012-07-06 18:18:10 -04:00
parent f26719d23c
commit e6a5eb925d

View File

@@ -180,6 +180,7 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
!mailReceiverContext.getFolder().isOpen()) {
try {
this.openFolder();
return this.contextHolder.get();
}
catch (MessagingException e) {
throw new org.springframework.integration.MessagingException("Failed to open folder", e);