Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you're willing to take on the dependency, <a href="http://static.springsource.org/spring-integration/docs/latest-ga/reference/html/mail.html#mail-inbound" rel="nofollow">Spring Integration</a> can comfortably read email from a designated server on a polling (POP3, IMAP) or event-driven basis (IMAP-IDLE). <strong>[1 &amp; 3]</strong></p> <p><strong>[2]</strong> You can use a dedicate mail account and filter the mail sent to downstream channels based on the subject (or other field) of the incoming mail. The following snippet from the Spring site illustrates this:</p> <pre><code> &lt;int-mail:imap-idle-channel-adapter id="customAdapter" store-uri="imaps://some_google_address:${password}@imap.gmail.com/INBOX" channel="receiveChannel" should-mark-messages-as-read="true" java-mail-properties="javaMailProperties" mail-filter-expression="subject matches '(?i).*Spring Integration.*'"/&gt; </code></pre> <p>Where <code>mail-filter-expression</code> filters the email that will be flushed down <code>receiveChannel</code>. For all interested parties (channels), you'll have one <code>&lt;int-mail:imap-idle-channel-adapter/&gt;</code> listening to your Exchange server.</p> <p>While it's not cumbersome to use, I'd recommend you look at a <a href="http://www.fiveminutes.eu/introducing-spring-integration/" rel="nofollow">short overview of EAI according to spring</a> and <a href="http://en.wikipedia.org/wiki/Enterprise_application_integration" rel="nofollow">of EAI in general</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload