If you only want to search within the attachment, you’ll have to specify the attachment: field as well:
You can combine this with a regular search term to look in the message itself as well as in the attachment: Search in attachment and message body text ext:(NOT docx NOT pdf NOT xlsx) hasattachments:yes.To search for all attachments except for some specific types, you must also include the command hasattachments:yes or you’ll also get all messages without attachments returned: This can be useful when you want to search for doc files specifically and not also include docx files in your results. If you want to exclude a specific file type from your search, you can use the NOT statement (case sensitive!). If you want to search for messages which contain at least one of the file types, you must use the OR statement (case sensitive!): If you want to search for messages which contain at least 2 specific type of file attachments, you’ll have to enclose your search in round brackets after you specify the ext: search command: Search for multiple attachment types in one search With these two search commands, you can also do quite some advanced things to further optimize your search results if needed as shown in the examples below.Ī short but effective search command. You can also combine these commands and search for specific words inside docx attachments To limit your search to text within an attachment, you can use the attachment: search command. In short, to search for a specific type, you can type the following search command ext: manually in the Search field. Is it also possible to only search for text within an attachment and not within the message body? Outlook can find emails with one or more attachments by specifying the "Has Attachments" option.īut how can I search for a specific type of attached file?Į.g.