Follow the steps below to retrieve emails that contain a From address of "example@informatica.com" and save their attachments to a directory:
On the Advanced tab, there is an option to delete the message after it is retrieved, which by default is set to false. Changing it to true will delete the message from the mail box server after it is retrieved.
From within the Project Designer page, expand the Email folder in the Component Library, and then drag the Retrieve Email task to the Project Outline.
On the Basic tab of the Retrieve Mail task, specify values for the following attributes:
The
file path where the attachments should be saved.
Save Attachments
Whether or not to save the attachments to the destination directory.
Click the
Add
button in the sub-menu and select the Message Filter menu item.
On the Basic tab of the Message Filter element, specify values for the following attributes:
Match - Specify the type of matching to use. Valid options are 'all' and 'any'. The option 'all' means that all filter criteria must be met for an email message to be processed, whereas 'any' means that one or more filter criteria must be met for an email message to be processed.
Click the
Add
button in the sub-menu and select the Add a From Address Filter menu item.
On the Basic tab of the From Address Filter, specify values for the following attributes:
Condition
Specify the condition to use for including or excluding emails. Valid options are 'equals', 'not equals', 'contains', 'not contains', and 'regex'.
Value
Specify the search term.
Case Sensitive
Specify whether or not to use case sensitive matching.