I'm looking for an attachment that happens to be a password-protected PDF file (you need to type the password to open it). Is there a way to search Gmail for such files?

1 Answer 1


You can search for PDF attachments, certainly. But Gmail has no idea whether a PDF is password-protected or not.

Searching for

filename:pdf has:attachment 

should return all of your conversations with a PDF attachment.

If the sender mentioned that it was password-protected in the body of the message, this might be helpful:

filename:pdf has:attachment password
  • @Vaddadi: Good point. I've adjusted my answer (and will adjust my filter).
    – ale
    Jul 29, 2016 at 16:26

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