Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / a2 / 498d797baa308ee1f0c2fcab56f523a787af81
1 Return-Path: <fatkasuvayu+linux@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 595096DE0274\r
6  for <notmuch@notmuchmail.org>; Tue, 29 Sep 2015 00:15:27 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.719\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.719 tagged_above=-999 required=5 tests=[AWL=0.101,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,\r
14  SPF_PASS=-0.001] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id Y8xi7JBXOqhb for <notmuch@notmuchmail.org>;\r
18  Tue, 29 Sep 2015 00:15:25 -0700 (PDT)\r
19 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com\r
20  [209.85.212.177])\r
21  by arlo.cworth.org (Postfix) with ESMTPS id 47A216DE00CB\r
22  for <notmuch@notmuchmail.org>; Tue, 29 Sep 2015 00:15:25 -0700 (PDT)\r
23 Received: by wicfx3 with SMTP id fx3so136025187wic.1\r
24  for <notmuch@notmuchmail.org>; Tue, 29 Sep 2015 00:15:22 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=sender:date:from:to:subject:message-id:mail-followup-to:references\r
27  :mime-version:content-type:content-disposition:in-reply-to\r
28  :user-agent; bh=eGQWYUoy7Osa2KtLHD54YHVpJOBd98yZKjj/F6Zq010=;\r
29  b=vdchQKPQGZ4UyLWrcBcWKTbSf0eXs9knLPXFfEuo71/JuefB6qGnlZsLIG8zp09Cdl\r
30  eYHgKRLNrYUXYQs4Vmx8Gfb415HFW6XJUeKDgdtVs4SiSh+atJv/IfXg5m3F2cK/Iob6\r
31  w7zCILnzYNRJQygV+dDqATdWbNhUJexNsnidbrQ8BYsH6MwYEGVkNXwyGrp2o8SIK6WP\r
32  Wuyzn9nDxF4OmLsSERl3SV5qD3YaqwB+MoRXYIc+1BNr98CRFxK2HWAJRkCH3i78E6km\r
33  vpZaeKrMOr8ROG6HE/E9hepP9167n9Q2Fk7MZO2MyqtKhSdNDrmAFwtxiNgH1ahuo/GM\r
34  i0Sw==\r
35 X-Received: by 10.180.188.211 with SMTP id gc19mr24815441wic.81.1443510921969;\r
36   Tue, 29 Sep 2015 00:15:21 -0700 (PDT)\r
37 Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl.\r
38  [80.114.132.14])\r
39  by smtp.gmail.com with ESMTPSA id r4sm22181632wia.19.2015.09.29.00.15.20\r
40  for <notmuch@notmuchmail.org>\r
41  (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
42  Tue, 29 Sep 2015 00:15:20 -0700 (PDT)\r
43 Sender: Suvayu Ali <fatkasuvayu@gmail.com>\r
44 Date: Tue, 29 Sep 2015 09:15:18 +0200\r
45 From: Suvayu Ali <fatkasuvayu+linux@gmail.com>\r
46 To: notmuch@notmuchmail.org\r
47 Subject: Re: correct way to search for only PDF attachments\r
48 Message-ID: <20150929071518.GA20628@chitra.no-ip.org>\r
49 Mail-Followup-To: notmuch@notmuchmail.org\r
50 References:\r
51  <CAJhTkNgwX8cmsKfJGV+x7HHMXPNZvXFXO=KZzLvrcWCGrDL=Pg@mail.gmail.com>\r
52  <87vbau9e8i.fsf@wondoo.home.cworth.org>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain; charset=us-ascii\r
55 Content-Disposition: inline\r
56 In-Reply-To: <87vbau9e8i.fsf@wondoo.home.cworth.org>\r
57 User-Agent: Mutt/1.5.23.1 (2014-03-12)\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.18\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62  <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Tue, 29 Sep 2015 07:15:27 -0000\r
71 \r
72 On Mon, Sep 28, 2015 at 07:00:13PM -0700, Carl Worth wrote:\r
73 > On Mon, Sep 28 2015, Xu Wang wrote:\r
74\r
75 > > To understand more, what does the following search for?\r
76 > >\r
77 > > from:jongho attachment:.*pdf\r
78\r
79 > Uhm, probably only strange things. There are some mechanisms for getting\r
80 > notmuch to emit some debugging information on what the final search\r
81 > terms end up being, (but I don't recall if they still require\r
82 > recompilation or not).\r
83 \r
84 This should work:\r
85 \r
86   $ export NOTMUCH_DEBUG_QUERY=1\r
87   $ notmuch count -- from:suvayu attachment:*.pdf\r
88   Query string is:\r
89   from:suvayu attachment:*.pdf\r
90   Exclude query is:\r
91   Xapian::Query()\r
92   Final query is:\r
93   Xapian::Query((Tmail AND ZXFROMsuvayu:(pos=1) AND Zattach:(pos=2) AND Zpdf:(pos=3)))\r
94   217\r
95   $ notmuch count -- from:suvayu attachment:pdf\r
96   Query string is:\r
97   from:suvayu attachment:pdf\r
98   Exclude query is:\r
99   Xapian::Query()\r
100   Final query is:\r
101   Xapian::Query((Tmail AND ZXFROMsuvayu:(pos=1) AND ZXATTACHMENTpdf:(pos=2)))\r
102   151\r
103 \r
104 I guess to answer the OP's question, the globbed form simply does a text\r
105 search of attach and pdf.  The keyword is not recognised at all.\r
106 \r
107 Cheers,\r
108 \r
109 -- \r
110 Suvayu\r
111 \r
112 Open source is the future. It sets us free.\r