FolderMustHaveRegex

A regular expression to restrict the folders that are processed.

Folders with paths that match the regular expression are processed.

Folders with paths that do not match the regular expression are excluded. If a folder is excluded by this parameter, its subfolders are not excluded unless they also have paths that do not match the regular expression.

To exclude a large number of folders, consider using FolderMustHaveRegexToCrawl.

Type: Regular Expression
Default:  
Required: No
Configuration Section: TaskName or FetchTasks or Default
Example:
FolderMustHaveRegex=^//Top of Information Store/Inbox/Folder(/.*)?$

The connector only retrieves messages from //Top of Information Store/Inbox/Folder and its subfolders.

FolderMustHaveRegex=^//Top of Information Store/Inbox/Folder$

The connector only retrieves messages from //Top of Information Store/Inbox/Folder. The connector does not retrieve items from subfolders of Folder.

See Also:

FolderCantHaveRegex

FolderCantHaveRegexToCrawl

FolderMustHaveRegexToCrawl