correct way to search for only PDF attachments

David Bremner david at tethera.net
Tue Sep 29 04:00:18 PDT 2015


Carl Worth <cworth at cworth.org> writes:

> On Mon, Sep 28 2015, Xu Wang wrote:
>> I would look to look for all emails from a colleague jongho. I tried:
>>
>> from:jongho attachment:pdf
>>
>> which seems to do as I wanted.
>
> Good. That should work.

Another option is to use mimetype:pdf

man notmuch-search-terms is probably worth a look when facing these
kinds of puzzles. It contains both Carl's reply about term based search
and mine about the mimetype: prefix.  Of course it is getting pretty
big, I don't know what to do about that.

d


More information about the notmuch mailing list