{"id":826,"date":"2011-04-01T11:26:00","date_gmt":"2011-04-01T09:26:00","guid":{"rendered":""},"modified":"2012-08-14T08:41:41","modified_gmt":"2012-08-14T07:41:41","slug":"read-emails-from-imap-with-spring-intergration","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2011\/04\/01\/read-emails-from-imap-with-spring-intergration\/","title":{"rendered":"<!--:en-->Read emails from imap with Spring Intergration<!--:-->"},"content":{"rendered":"<p><!--:pl--><\/p>\n<div style=\"text-align: left;\" dir=\"ltr\"><\/div>\n<p><!--:--><!--:en--><\/p>\n<div dir=\"ltr\">What\u2019s the easiest way to read emails from IMAP account in Java? Depends what your background is. If you have any experience in Apache Camel, ServiceMix, Mule, you already know the answer. If you don\u2019t, and your application is using Spring already, Spring-Integration may be the solution for you.<\/p>\n<p>It\u2019s not a one-liner like what you could do with Camel, but it\u2019s still quite easy to understand.<\/p>\n<p>Spring Integration has\u00a0<a href=\"http:\/\/static.springsource.org\/spring-integration\/reference\/htmlsingle\/\">great docs<\/a>\u00a0and there are\u00a0<a href=\"http:\/\/java.dzone.com\/articles\/spring-integration-hands-0\">nice tutorials<\/a>\u00a0around, but if you just want to get it running first and dig into the docs later, here is a quick example for you.<\/p>\n<p>To make it work, you need three steps:<\/p><\/div>\n<p><a href=\"http:\/\/blog.solidcraft.eu\/2011\/04\/read-emails-from-imap-with-spring.html#more\">Read more \u00bb<\/a><\/p>\n<div><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/tracker\/8795604888160975763-5622510864366091317?l=blog.solidcraft.eu\" alt=\"\" width=\"1\" height=\"1\" \/><\/div>\n<p><!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"What&#039;s the easiest way to read emails from IMAP account in Java? Depends what your background is. If you have any experience in Apache Camel, ServiceMix, Mule, you already know the answer. If you don&#039;t, and your application is using Spring alr&#8230;What&#039;s the easiest way to read emails from IMAP account in Java? Depends what your background is. If you have any experience in Apache Camel, ServiceMix, Mule, you already know the answer. If you don&#039;t, and your application is using Spring alr&#8230;\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[68,42],"class_list":{"0":"post-826","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-development-design","7":"tag-java","8":"tag-spring-framework"},"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=826"}],"version-history":[{"count":25,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/826\/revisions"}],"predecessor-version":[{"id":9382,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/826\/revisions\/9382"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}