INT-1475 more polishing code and actually fixed an invalid test
This commit is contained in:
@@ -296,10 +296,9 @@ public abstract class AbstractMailReceiver extends IntegrationObjectSupport impl
|
||||
*/
|
||||
protected void setAdditionalFlags(Message message) throws MessagingException {}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
super.onInit();
|
||||
if (this.shouldDeleteMessages){
|
||||
this.folderOpenMode = Folder.READ_WRITE;
|
||||
}
|
||||
|
||||
@@ -177,6 +177,7 @@ public class ImapMailReceiver extends AbstractMailReceiver {
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
super.onInit();
|
||||
if (this.shouldMarkMessagesAsRead){
|
||||
this.folderOpenMode = Folder.READ_WRITE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user