Class MailIntegrationConfig

java.lang.Object
com.bytedesk.ticket.email.MailIntegrationConfig

@Configuration @ConditionalOnProperty(name="bytedesk.mail.integration.enabled", havingValue="true", matchIfMissing=false) public class MailIntegrationConfig extends Object
https://docs.spring.io/spring-integration/reference/mail.html
  • Field Details

    • imapUrl

      @Value("${bytedesk.mail.imap.url:imaps://username:password@imap.example.com:993/INBOX}") private String imapUrl
    • pollingDelay

      @Value("${bytedesk.mail.polling.delay:60000}") private long pollingDelay
  • Constructor Details

    • MailIntegrationConfig

      public MailIntegrationConfig()
  • Method Details

    • mailChannel

      @Bean public org.springframework.messaging.MessageChannel mailChannel()
    • imapMailReceiver

      @Bean public org.springframework.integration.mail.ImapMailReceiver imapMailReceiver()
    • mailMessageSource

      @Bean @InboundChannelAdapter(value="mailChannel", poller=) public org.springframework.integration.core.MessageSource<Object> mailMessageSource()
    • mailMessageHandler

      @Bean @ServiceActivator(inputChannel="mailChannel") public org.springframework.messaging.MessageHandler mailMessageHandler()