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?


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 '16 at 16:26

protected by Community Aug 27 '17 at 0:28

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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