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.

  1. Create a workflow with IMAP Capture component as a capture component and SharePoint as a route component.
  2. Using IMAP Capture main configuration window, add an account to be used to connect to the desired mail server.
  3. Add a class that will work with messages with attachments. In the Email Class Configuration dialog box, make the following settings for this class.
    1. Give the name to the class.
    2. Specify a folder from which the messages will be captured.
    3. 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")
    4. In the Create documents for group, select only Attachments check box.
    5. 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.
    6. On the Components tab, make appropriate settings of the SharePoint component.
  4. Add a class that will work with report messages. In the Email Class Configuration dialog box, make the following settings for this class.
    1. Give the name to the class.
    2. Specify a folder from which the messages will be captured.
    3. 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")
    4. In the Create documents for group, select only Body check box.
    5. On the Components tab, make appropriate settings of the SharePoint component.
  5. Run the process.
The component will inspect the specified mail account and search for the messages that meet the specified criteria. Each time when a message meets criteria of one of two specified classes, the component will capture it and send to the process either as a picture if it is a picture, or as a text document if it is a report message.