How to search text inside attachments in Outlook archives
Why Outlook misses words in attachments
- Outlook's search depends on the Windows Search index. An archive you opened recently, or one stored on a network drive, is often only partly indexed.
- Each file type needs a reader ("filter") in Windows. Word and Excel files usually work. Other types depend on what is installed on the computer.
- Scanned documents are images. A scanned contract or invoice in a PDF has no text for Outlook to search, unless it was converted with text recognition (OCR) before it was sent.
- Attachments inside attachments, such as a PDF in a forwarded mail, are often skipped.
What you can try in Outlook
- Open the archive (File, Open & Export, Open Outlook Data File) and click it in the folder list.
- Set the search scope to Current Mailbox, or All Outlook Items to include your other mailboxes.
- Type your word. To limit the search to mails with attachments, add
hasattachments:yes. To look only in attachments, useattachments:yourword. - If results look incomplete, check File, Options, Search, Indexing Options. If Windows is still indexing, wait until it finishes. If it never finishes, choose Advanced, then Rebuild. This can take many hours.
Copy archives from a network drive to your own computer first. Windows Search often does not index .pst files on network drives at all.
Searching every attachment with MailDepth
MailDepth is a mail archive search program that runs in Chrome or Edge. It does not use the Windows index. It opens each attachment itself and makes its text searchable:
- PDF, Word, Excel, PowerPoint, RTF and text files, including the older .doc and .xls formats
- Scanned documents and photos of documents, read in their own language
When a word is found inside an attachment, you see the sentence with your word and the file name, without opening the file. Your mails and attachments are read on your own computer and are not uploaded.
- Open maildepth.com/app in Chrome or Microsoft Edge and sign in with your e-mail address.
- Choose Add mailbox and pick your .pst files, or a whole folder of them.
- Type a word. MailDepth first makes the mail text searchable, then reads the attachments, then the scanned pages. You can already search while it works.
It is free for your newest 1,000 mails, attachments and scanned documents included.
Find the word inside the attachment, not just the mail. Free for your newest 1,000 mails.
Open MailDepthQuestions
Can Outlook search inside PDF attachments?
Sometimes, if Windows has a PDF filter and the mailbox is fully indexed. Scanned PDFs are not searchable this way, because they contain images, not text.
Can I search attachment names only?
Yes. In Outlook, attachments: also matches file names.
Does this work with Gmail exports too?
Yes. MailDepth reads the attachments in Gmail .mbox files the same way. See How to search a Gmail Takeout export.