Files
spring-integration-samples/intermediate/mail-attachments
Spring Operator aa8dff4cfd URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 67 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt with 68 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://projects.spring.io/spring-integration with 68 occurrences migrated to:
  https://projects.spring.io/spring-integration ([https](https://projects.spring.io/spring-integration) result 301).
* http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/libs-snapshot with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* http://repo.spring.io/libs-staging-local with 1 occurrences migrated to:
  https://repo.spring.io/libs-staging-local ([https](https://repo.spring.io/libs-staging-local) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 134 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 67 occurrences
2019-03-16 12:54:41 -04:00
..
2017-11-30 20:37:49 -05:00
2019-03-16 12:54:41 -04:00

Spring Integration - Processing Email Attachments Sample

Overview

This example demonstrates how emails including their attachments can be processed using Spring Integration. This sample uses the following Spring Integration components:

  • Mail Inbound Channel Adapter
  • Chain
  • Transformer
  • Splitter
  • File Outbound Channel Adapter

Getting Started

In order to use this sample you must have access to a mail-server. You can either use an external server (e.g. GMail) or you can also easily setup your own mail server using Apache James 3.0 (http://james.apache.org/). You can find instructions for setting up a basic instance at:

In src/main/resources/META-INF/spring/integration/spring-integration-context.xml change the following to reflect the settings for your mail server.

store-uri="imap://test:test@localhost:143/INBOX" 

Lastly, before you run the example, please make sure that your email inbox contains some messages.

You can run this sample by either.

  • running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)

  • or from the command line:

    $ gradlew :mail-attachments:run

Once started, the configured mail server will be polled for new email messages every 5 seconds.


For help please take a look at the Spring Integration documentation:

http://www.springsource.org/spring-integration