In order to search a mail store for a specific kind of attachment (specific extension) you will need to use the dtSearch functions built into Harvester. For example, to search a PST for any .DOCX attachments you would use the following syntax:
(Attachments includes “.docx”)
This would export any messages containing .DOCX attachments. The exported messages would be in MSG format.