Java Mail Listner : This email server does not support RECENT or USER flags
问题 This is a continuation of Java mail listener using Spring Integration : mail isn't received by multiple app instances . I'm using below ImapMailReceiver code : @Bean public ImapMailReceiver receiver() { ImapMailReceiver receiver = new ImapMailReceiver( "imaps://username:pwd@mail.company.com/INBOX"); receiver.setShouldMarkMessagesAsRead(false); receiver.setSimpleContent(true); receiver.setUserFlag("test-flag"); //receiver.setJavaMailProperties(javaMailProperties()); return receiver; } My