From: Xu Wang Date: Tue, 29 Sep 2015 00:55:36 +0000 (+2000) Subject: correct way to search for only PDF attachments X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5635d65933eb63d386b938b451df84f56463488f;p=notmuch-archives.git correct way to search for only PDF attachments --- diff --git a/2e/afdc544f63e259dcdc1e1f30c307bb0d23a9c1 b/2e/afdc544f63e259dcdc1e1f30c307bb0d23a9c1 new file mode 100644 index 000000000..2bdecec42 --- /dev/null +++ b/2e/afdc544f63e259dcdc1e1f30c307bb0d23a9c1 @@ -0,0 +1,79 @@ +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 D747D6DE0274 + for ; Mon, 28 Sep 2015 17:55:41 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.518 +X-Spam-Level: +X-Spam-Status: No, score=-0.518 tagged_above=-999 required=5 tests=[AWL=0.052, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + 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 6bbVJjnDF50d for ; + Mon, 28 Sep 2015 17:55:40 -0700 (PDT) +Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com + [209.85.214.180]) + by arlo.cworth.org (Postfix) with ESMTPS id CAA706DE0173 + for ; Mon, 28 Sep 2015 17:55:39 -0700 (PDT) +Received: by obbzf10 with SMTP id zf10so141071179obb.2 + for ; Mon, 28 Sep 2015 17:55:37 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:date:message-id:subject:from:to:content-type; + bh=AGXprEp1zhqJugZBbI7dYX1zAgeWqLyb/Nmrv/6oEC0=; + b=nZMCJMz7RFwvBb10Ry7VY4+e0FydVNahdcIlksruvpB5sDxTZ8y6MY+g6AhtypwGHh + CuG29Y3Ok9W9U1xt/oPLfiSqTwN//XGfEVO0MRoi6SlMh4Wy96WPWg+OkM47DBh6BCsf + LSQ2Tp1YmFgItc7Xq5vC+DlnN/2dzNA0jM+BINee9/ZVWiEMr5s9H2HtI06qzzzUCGUJ + 5nxg6nC1EzsNToyEDes5xspzKK6cZezKgLHQrV4h8D21Ew14U1LtDYurHNitL8PPXlrr + fOpx9cbvlomZveTQ9NAp/fcBv2iQp+QrC8OHERaxPVLvDB/5n8gjJXzBE7G8+CCQLMUp + +NwA== +MIME-Version: 1.0 +X-Received: by 10.182.58.76 with SMTP id o12mr352406obq.78.1443488136616; Mon, + 28 Sep 2015 17:55:36 -0700 (PDT) +Received: by 10.202.212.204 with HTTP; Mon, 28 Sep 2015 17:55:36 -0700 (PDT) +Date: Mon, 28 Sep 2015 20:55:36 -0400 +Message-ID: + +Subject: correct way to search for only PDF attachments +From: Xu Wang +To: notmuch@notmuchmail.org +Content-Type: text/plain; charset=UTF-8 +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 00:55:42 -0000 + +Hi, + +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. + +To understand more, what does the following search for? + +from:jongho attachment:.*pdf + +I know it is incorrect as the results tell me, but what exactly does it do? + +Also, how does the first one above know that I want only PDF +attachments and not an attachment called "pdformula.txt" ? + +Kind regards, + +Xu