/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @param url the IMAP url * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap(String url) { return Mail.imapInboundAdapter(url); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap() { return Mail.imapInboundAdapter(); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap() { return Mail.imapInboundAdapter(); }
/** * Factory for the {@link ImapMailInboundChannelAdapterSpec} * @param url the IMAP url * @return ImapMailInboundChannelAdapterSpec instance */ public ImapMailInboundChannelAdapterSpec imap(String url) { return Mail.imapInboundAdapter(url); }
@Bean public IntegrationFlow imapMailFlow() { return IntegrationFlows .from(Mail.imapInboundAdapter("imap://user:pw@localhost:" + imapServer.getPort() + "/INBOX") .searchTermStrategy(this::fromAndNotSeenTerm) .userFlag("testSIUserFlag") .javaMailProperties(p -> p.put("mail.debug", "false")), e -> e.autoStartup(true) .poller(p -> p.fixedDelay(1000))) .channel(MessageChannels.queue("imapChannel")) .get(); }