Folder and Message Selection

Each mailbox contains items organized into folders. Use the parameters in this section to choose which folders and messages to process and which to ignore.

You can select folders based on their paths from the root of the mailbox. You can use regular expressions to match these paths. For example, if a folder Top has a subfolder Folder its path would be Top/Folder and could be matched using the regular expression Top/Folder.

NOTE: Folder names in Exchange can contain / characters, which the connector uses as path separators. If you want to match folder names containing either / or \ characters, you must escape them using a \ character. Because regular expressions also use \ as an escape character, you need to escape twice.

For example, if a folder Top has a subfolder one/two, the path of the subfolder is Top/one\/two. This lets you distinguish between a folder called one/two and a folder one with a subfolder two. A regular expression to match this path would look like this: Top/one\\/two.

Similarly, if a folder Top has a subfolder one\two, the path of the subfolder is Top/one\\two. A regular expression to match this path would look like this: Top/one\\\\two. In the regular expression, \\\\ matches a literal \\ in the path. The path contains \\ because \ in the folder name has been escaped.