Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 69 / 51c53de2dcb6b8df37783006ad4f953daae318
1 Return-Path: <Sebastian@SSpaeth.de>\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 olra.theworths.org (Postfix) with ESMTP id 09749431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 02:32:33 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.09\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_NONE=-0.0001, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id hwHIdiM1Ghgp for <notmuch@notmuchmail.org>;\r
17         Mon, 11 Jul 2011 02:32:32 -0700 (PDT)\r
18 Received: from homiemail-a12.g.dreamhost.com (caiajhbdcbhh.dreamhost.com\r
19         [208.97.132.177])\r
20         by olra.theworths.org (Postfix) with ESMTP id 33C40431FB6\r
21         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 02:32:32 -0700 (PDT)\r
22 Received: from homiemail-a12.g.dreamhost.com (localhost [127.0.0.1])\r
23         by homiemail-a12.g.dreamhost.com (Postfix) with ESMTP id 6910671406F;\r
24         Mon, 11 Jul 2011 02:32:31 -0700 (PDT)\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject\r
26         :in-reply-to:references:date:message-id:mime-version:\r
27         content-type; q=dns; s=sspaeth.de; b=NltX3dTX8mHKMxxLdp2StnkjJLj\r
28         RJKHQG25rubAyTeXi/lhLlWuJ8R6tyjE0DpMaTfqdCDYB1h6rD3Z/nq+wfU8U/fe\r
29         WKy2ibK0K5fP985b6NqPjEkz+L+UVvvUZCcEkz8BX/eEzP6XKu2Zb+YcM/W6sNiw\r
30         Cx/HiMTiqt29PpeA=\r
31 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to\r
32         :subject:in-reply-to:references:date:message-id:mime-version:\r
33         content-type; s=sspaeth.de; bh=A3c259i/pdy3K4m77gBootFC/Cg=; b=H\r
34         83B7ov0isBbaKr0O5w/MU1/XL4x4LeyL5jh02FK60rdsfv7cdktBsKO5xDjuWjgF\r
35         SFu91KQmu4gk6uVSQke4YTNsPOcUE//bMJEKXIPq19NJfy9TjCw0jcBViOkym37K\r
36         8PtiMuDKJS0LEOJ3cTbF7VN0oQ50gkDfZXns00T0+o=\r
37 Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-253.ethz.ch\r
38         [129.132.133.253])\r
39         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
40         (No client certificate requested)\r
41         (Authenticated sender: fax@sspaeth.de)\r
42         by homiemail-a12.g.dreamhost.com (Postfix) with ESMTPSA id CF457714070; \r
43         Mon, 11 Jul 2011 02:32:29 -0700 (PDT)\r
44 Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
45         Mon, 11 Jul 2011 11:32:27 +0200\r
46 From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
47 To: Patrick Totzke <patricktotzke@googlemail.com>, notmuch@notmuchmail.org\r
48 Subject: Re: [python] querystrings as unicode literals?\r
49 In-Reply-To: <20110707113700.GA16347@megatron>\r
50 References: <20110707113700.GA16347@megatron>\r
51 User-Agent: Notmuch/0.5-233-gb404931 (http://notmuchmail.org) Emacs/23.2.1\r
52         (x86_64-pc-linux-gnu)\r
53 Date: Mon, 11 Jul 2011 11:32:27 +0200\r
54 Message-ID: <87k4bpxivo.fsf@SSpaeth.de>\r
55 MIME-Version: 1.0\r
56 Content-Type: multipart/signed; boundary="=-=-=";\r
57         micalg=pgp-sha1; protocol="application/pgp-signature"\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\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: Mon, 11 Jul 2011 09:32:33 -0000\r
71 \r
72 --=-=-=\r
73 Content-Transfer-Encoding: quoted-printable\r
74 \r
75 On Thu, 7 Jul 2011 12:37:00 +0100, Patrick Totzke <patricktotzke@googlemail=\r
76 .com> wrote:\r
77 > Hi!\r
78 > Something strange goes on when I use unicode literals as querystrings:\r
79 > Database().create_query(u'teststring') yields different results than\r
80 > Database().create_query('teststring')..\r
81 >=20\r
82 > Now it should not be a problem to decode the string to whatever encoding\r
83 > is used by notmuch/xapian internally using 'teststring'.encode('utf8')\r
84 > for example. But can I reliably expect all strings in the index to be val=\r
85 id utf8?\r
86 >=20\r
87 > At any rate, I think this conversion should be made from inside the bindi=\r
88 ngs.\r
89 > A query should return the same results for querystrings as string- and un=\r
90 icode literals.=20\r
91 > Any thoughts?\r
92 \r
93 I hate encodings and they always confuse the heck out of me. I would\r
94 prefer if everything was always UTF8. notmuch.h actually doesn't state\r
95 which encoding the query string should be and neither did\r
96 http://xapian.org/docs/queryparser.html. ojwb said, it takes UTF-8, so\r
97 that's what we should be doing.\r
98 \r
99 I'll send a patch as a reply shortly, Patrick, do you care to test if\r
100 this fixes things for you?\r
101 \r
102 Sebastian\r
103 \r
104 --=-=-=\r
105 Content-Type: application/pgp-signature\r
106 \r
107 -----BEGIN PGP SIGNATURE-----\r
108 Version: GnuPG v1.4.11 (GNU/Linux)\r
109 \r
110 iEYEARECAAYFAk4awysACgkQVYX1jMgnoGLy1QCgiYbBti7as4NU845U0T9RTKQ5\r
111 VnUAoJEQV9RFU3N7mfYB2KL6XqKOfz5y\r
112 =W5mp\r
113 -----END PGP SIGNATURE-----\r
114 --=-=-=--\r