Use the IMAP Capture component
Find the useful scenario of the component usage.
The following scenario describes how to configure the IMAP Capture component to fetch messages from a specified user account according to a number of criteria, such as sender name and subject set by a custom IMAP search query, and to send them into different folders on a SharePoint server.
In this scenario, we consider that there are three mail senders, and they send two kinds of messages: empty-body letters with picture attachments that have subject "Product art", and HTML messages with some reports that have subject "Report". We also consider that the senders of the messages have the following names: Jessica Ash, Ashley Corrigan and Ethan Smith.
- Create a workflow with IMAP Capture component as a capture component and SharePoint as a route component.
- Using IMAP Capture main configuration window, add an account to be used to connect to the desired mail server.
-
Add a class that will work with messages with attachments.
In the Email Class Configuration dialog box, make the following settings for this class.
- Give the name to the class.
- Specify a folder from which the messages will be captured.
- Specify the search criteria: select Custom check box and enter the following custom query for searching messages: (OR (OR (FROM "Ashley Corrigan") (FROM "Ethan Smith")) (FROM "Jessica Ash")) (SUBJECT "Product art")
- In the Create documents for group, select only Attachments check box.
-
In the Split jobs group, select Split documents to jobs check box.
This is needed to process each attachment of a message as a single job.
- On the Components tab, make appropriate settings of the SharePoint component.
-
Add a class that will work with report messages.
In the Email Class Configuration dialog box, make the following settings for this class.
- Give the name to the class.
- Specify a folder from which the messages will be captured.
- Specify the search criteria: select Custom check box and enter the following custom query for searching messages: (OR (OR (FROM "Ashley Corrigan") (FROM "Ethan Smith")) (FROM "Jessica Ash")) (SUBJECT "Report")
- In the Create documents for group, select only Body check box.
- On the Components tab, make appropriate settings of the SharePoint component.
- Run the process.