FolderMustHaveRegexToCrawl

A regular expression to restrict the folders that are processed.

Folders with paths that match the regular expression are processed. If a folder’s path does not match this regular expression, everything inside the folder is excluded.

Because subfolders of folders excluded by this parameter do not need to be processed at all, using this parameter to exclude parts of folder trees can be more efficient than using FolderMustHaveRegex.

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

Only messages from the Top of Information Store, Inbox, and all folders inside Inbox are retrieved.

FolderMustHaveRegexToCrawl=^//Top of Information Store/Inbox/Folder

No messages are retrieved. This is because Top of Information Store does not match the regular expression, so all folders and messages are excluded.

See Also:

FolderCantHaveRegex

FolderCantHaveRegexToCrawl

FolderMustHaveRegex