# 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

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm