6

Gmail allows me to search using the operator as

has:attachment *.txt

How do I further filter this to search for a specific word in a file?

E.g. to search for a PDF that contains the word ATLANTICO, I've tried this without success:

has: attachment *.pdf ATLANTICO
4

I'm afraid you can't. Looking at Gmail help, there's nothing related to searching within attachments.

You can specify a file name, but that's it:

filename:physicshomework.txt

Or you could save files you want to search through to Google Docs.


The simple explanation why it's not possible is that it would require a tremendous amount of indexing to be done. Gmail search isn't that fast to begin with, and I can imagine it'd take far too long to search within attachments.

Also note that this is a feature that even most desktop clients don't do.

That being said, there seems to be a startup that focuses on what you want: attachments.me

Attachments.me indexes your email account and presents an attachments-centric view of it. We create thumbnails, let you search within attachments, and, above all, make your email better

| improve this answer | |
  • I'm confused; running a google web search usually brings up such PDF as include keywords for the search as well. – Everyone Jul 30 '11 at 17:21
  • 1
    Google Web search is not the same as the search used in Google Mail. If you search in GMail, you will notice that it's much slower, the reason (probably) being that GMail search is a far less commonly used feature than Google Web search and therefore not as optimized. We've had a question about the difference between the two on Stack Exchange a while ago, can't seem to find it though. – slhck Jul 30 '11 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.