You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* INT-4299: Add AbstractMailReceiver.autoCloseFolder
JIRA: https://jira.spring.io/browse/INT-4299
* Optimize `AbstractMessageSource` do not evaluate headers when polling
result is `null`
* Optimize `MailReceivingMessageSource` do not wrap polling result to
the message: the `AbstractMessageSource` will do that later
* * Fix JavaDocs
* Document `autoCloseFolder` option
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/MailReceivingMessageSource.java
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/config/ImapIdleChannelAdapterParser.java
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/config/MailInboundChannelAdapterParser.java
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/config/MailReceiverFactoryBean.java
+9
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,8 @@ public class MailReceiverFactoryBean extends AbstractFactoryBean<MailReceiver> {
81
81
82
82
privateBooleansimpleContent;
83
83
84
+
privateBooleanautoCloseFolder;
85
+
84
86
publicvoidsetStoreUri(@NullableStringstoreUri) {
85
87
this.storeUri = storeUri;
86
88
}
@@ -141,6 +143,10 @@ public void setSimpleContent(@Nullable Boolean simpleContent) {
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/dsl/ImapIdleChannelAdapterSpec.java
+15
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,21 @@ public ImapIdleChannelAdapterSpec embeddedPartsAsBytes(boolean embeddedPartsAsBy
269
269
return_this();
270
270
}
271
271
272
+
/**
273
+
* When configured to {@code false}, the folder is not closed automatically after a fetch.
274
+
* It is the target application's responsibility to close it using the
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/dsl/MailInboundChannelAdapterSpec.java
+16
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,22 @@ public S simpleContent(boolean simpleContent) {
253
253
return_this();
254
254
}
255
255
256
+
/**
257
+
* When configured to {@code false}, the folder is not closed automatically after a fetch.
258
+
* It is the target application's responsibility to close it using the
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail-5.2.xsd
Copy file name to clipboardExpand all lines: spring-integration-mail/src/test/java/org/springframework/integration/mail/config/ImapIdleChannelAdapterParserTests-context.xml
Copy file name to clipboardExpand all lines: spring-integration-mail/src/test/java/org/springframework/integration/mail/config/ImapIdleChannelAdapterParserTests.java
Copy file name to clipboardExpand all lines: spring-integration-mail/src/test/java/org/springframework/integration/mail/config/InboundChannelAdapterParserTests-context.xml
0 commit comments