From: David Bremner Date: Tue, 29 Sep 2015 11:00:18 +0000 (+2100) Subject: Re: correct way to search for only PDF attachments X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e33b689f086a75744c7f08987c2bd2e4b0a07b2d;p=notmuch-archives.git Re: correct way to search for only PDF attachments --- diff --git a/f6/bf0b61dcbf2f07ab5716441272c7b6a6034c46 b/f6/bf0b61dcbf2f07ab5716441272c7b6a6034c46 new file mode 100644 index 000000000..6b8c80b95 --- /dev/null +++ b/f6/bf0b61dcbf2f07ab5716441272c7b6a6034c46 @@ -0,0 +1,71 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id B9D9B6DE0274 + for ; Tue, 29 Sep 2015 04:02:24 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.106 +X-Spam-Level: +X-Spam-Status: No, score=0.106 tagged_above=-999 required=5 tests=[AWL=0.106] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 7eqSGedLwpBR for ; + Tue, 29 Sep 2015 04:02:23 -0700 (PDT) +Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224]) + by arlo.cworth.org (Postfix) with ESMTPS id B7DC16DE025E + for ; Tue, 29 Sep 2015 04:02:22 -0700 (PDT) +Received: from remotemail by gitolite.debian.net with local (Exim 4.80) + (envelope-from ) + id 1ZgseF-0008UQ-97; Tue, 29 Sep 2015 11:00:39 +0000 +Received: (nullmailer pid 31499 invoked by uid 1000); Tue, 29 Sep 2015 + 11:00:18 -0000 +From: David Bremner +To: Carl Worth , Xu Wang , + notmuch@notmuchmail.org +Subject: Re: correct way to search for only PDF attachments +In-Reply-To: <87vbau9e8i.fsf@wondoo.home.cworth.org> +References: + + <87vbau9e8i.fsf@wondoo.home.cworth.org> +User-Agent: Notmuch/0.20.2+73~gd432116 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Tue, 29 Sep 2015 08:00:18 -0300 +Message-ID: <87y4fpqym5.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 29 Sep 2015 11:02:24 -0000 + +Carl Worth 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