Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 0e / b0a353c77c78ebd089632cf1c0ff29f10af3a3
1 Return-Path: <cworth@cworth.org>\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 F37E46DE0298\r
6  for <notmuch@notmuchmail.org>; Mon, 28 Sep 2015 19:00:15 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-9 tagged_above=-999 required=5 tests=[AM.WBL=-8,\r
12  ALL_TRUSTED=-1, AWL=0.000] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id xzXl6xNmLQVl; Mon, 28 Sep 2015 19:00:14 -0700 (PDT)\r
16 Received: from wondoo.home.cworth.org (unknown [10.0.0.1])\r
17  (Authenticated sender: cworth)\r
18  by arlo.cworth.org (Postfix) with ESMTPSA id 367596DE01F5;\r
19  Mon, 28 Sep 2015 19:00:14 -0700 (PDT)\r
20 Received: from wondoo.home.cworth.org (localhost [IPv6:::1])\r
21  by wondoo.home.cworth.org (Postfix) with ESMTPS id 1DC3114C43AC;\r
22  Mon, 28 Sep 2015 19:00:14 -0700 (PDT)\r
23 From: Carl Worth <cworth@cworth.org>\r
24 To: Xu Wang <xuwang762@gmail.com>, notmuch@notmuchmail.org\r
25 Subject: Re: correct way to search for only PDF attachments\r
26 In-Reply-To:\r
27  <CAJhTkNgwX8cmsKfJGV+x7HHMXPNZvXFXO=KZzLvrcWCGrDL=Pg@mail.gmail.com>\r
28 References:\r
29  <CAJhTkNgwX8cmsKfJGV+x7HHMXPNZvXFXO=KZzLvrcWCGrDL=Pg@mail.gmail.com>\r
30 User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1\r
31  (x86_64-pc-linux-gnu)\r
32 Date: Mon, 28 Sep 2015 19:00:13 -0700\r
33 Message-ID: <87vbau9e8i.fsf@wondoo.home.cworth.org>\r
34 MIME-Version: 1.0\r
35 Content-Type: multipart/signed; boundary="=-=-=";\r
36  micalg=pgp-sha512; protocol="application/pgp-signature"\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.18\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41  <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Tue, 29 Sep 2015 02:00:16 -0000\r
50 \r
51 --=-=-=\r
52 Content-Type: text/plain\r
53 \r
54 On Mon, Sep 28 2015, Xu Wang wrote:\r
55 > I would look to look for all emails from a colleague jongho. I tried:\r
56 >\r
57 > from:jongho attachment:pdf\r
58 >\r
59 > which seems to do as I wanted.\r
60 \r
61 Good. That should work.\r
62 \r
63 > To understand more, what does the following search for?\r
64 >\r
65 > from:jongho attachment:.*pdf\r
66 \r
67 Uhm, probably only strange things. There are some mechanisms for getting\r
68 notmuch to emit some debugging information on what the final search\r
69 terms end up being, (but I don't recall if they still require\r
70 recompilation or not).\r
71 \r
72 I'm not testing now, but I wouldn't be surprised if that ended up doing\r
73 something like searching for a phrase like "attachment pdf" anywhere\r
74 within a message. (The Xapian parser can be somewhat unpredictable when\r
75 you give it unexpected input.)\r
76 \r
77 > Also, how does the first one above know that I want only PDF\r
78 > attachments and not an attachment called "pdformula.txt" ?\r
79 \r
80 It doesn't know that you want only PDF attachments. The key part is that\r
81 the indexing is performed by breaking text up into individual terms, (at\r
82 punctuation boundaries usually). So a search specification like\r
83 "attachment:pdf" is searching for things that were indexed with the\r
84 "pdf" term within the attachment prefix. So that won't match a filename\r
85 like pdformula.txt, (which would be indexed as two terms, "pdformula"\r
86 and "txt"), but it would match pdf.ormula.txt, (which would be indexed\r
87 as three terms, "pdf", "ormula" and "txt").\r
88 \r
89 The Xapian documentation can be examined if you want more details.\r
90 \r
91 -Carl\r
92 \r
93 --=-=-=\r
94 Content-Type: application/pgp-signature; name="signature.asc"\r
95 \r
96 -----BEGIN PGP SIGNATURE-----\r
97 Version: GnuPG v1\r
98 \r
99 iQIcBAEBCgAGBQJWCfCtAAoJEGACM7qeVNxhS7IP/28s0fs91BSkfOw8+0xMKP2q\r
100 JSv4Ze/5bfe+52U4GwKOX53fRVCDAmGz4lIA88GciM0185p0j4jjG6K6u+WfTr9r\r
101 cGMAWGGWFZM7UFjK6viVOTu0Y+XzVWxJFFO8nROr368eMQ7cZPNt9VgvNFFT51qa\r
102 tulCjt0ImQ1yyLlKPpagv9YJ3UFgp3G9HTr08HvOutb5oSpNtIR9efBkq2M+u+p3\r
103 SS9xmWwwCTY0OA6L6K0r5g3FazQrgdIXbldwf7EV64WdLBBcPJjleZGeAqhmHDwk\r
104 UYZ6wc1u+2kcKOPafR8UwXSlAKMq8qLv6BcHPFoUaDFxnAvau1dS2w0FTLzmLS5J\r
105 OZSBH5CV9Ucyt+X7OjnRCYbiH7Koa6Ov+Bv7GkoyznUiOU9m4YXBlVZSe3YsbhE0\r
106 hKZPx/IuDKQXQsmzoE7FWtjjIqhaFAKH7YszO07tC29GCkw7C+VpYSLyZYpP49sc\r
107 YMz4/YaQHVCIPLw+0YlHzFuTezrkryVAt2JuRUQgfffILXEZMdQ8dXsmVXU6Tk2S\r
108 17ksXff2QJOuaoaYLEhmG3sGH7EHzrJL7LVaEJdnaoVxjqLC+awapJPqhd6OGMg4\r
109 Nvu0848m43i3jjyuJfFAtcs23iDh8sxJbxnTCeG+Td0FrrbQpfcX7lDX/0OlRfIk\r
110 u1Fzh0FeF5MOdIB70Yv/\r
111 =ILAb\r
112 -----END PGP SIGNATURE-----\r
113 --=-=-=--\r