Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / b3 / 8e6cb16a49f49969225ef33d18ae5edcfe52aa
1 Return-Path: <patricktotzke@googlemail.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 olra.theworths.org (Postfix) with ESMTP id 93D32431FD0\r
6         for <notmuch@notmuchmail.org>; Thu,  7 Jul 2011 04:37:07 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 n9dq98w2FzJt for <notmuch@notmuchmail.org>;\r
17         Thu,  7 Jul 2011 04:37:07 -0700 (PDT)\r
18 Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com\r
19  [74.125.82.41])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  D14A3431FB6    for <notmuch@notmuchmail.org>; Thu,  7 Jul 2011 04:37:06 -0700\r
22  (PDT)\r
23 Received: by wwi14 with SMTP id 14so3851726wwi.2\r
24         for <notmuch@notmuchmail.org>; Thu, 07 Jul 2011 04:37:05 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=googlemail.com; s=gamma;\r
27         h=date:from:to:subject:message-id:mime-version:content-type\r
28         :content-disposition:user-agent;\r
29         bh=DjSA7RWJPQsXo0r1J7cRTSQ6UPhdSc41pc+hC80+RiY=;\r
30         b=VwFL1jN4mshXjrrhHWkJuZ764D7+Wffp3PNwKH1+XXAZVWAW0glwdimV66c6zjf54u\r
31         2VMlDANU+B3SwnSfKrkJ+j1iO5/DfYQ0uqjZQpvxF5Ix8vlbu4fkSKaUSWi0UNB0QuHS\r
32         T1hZ4bO4oq8F4snk6Xk4Zm73YSZ99pwl4uk+w=\r
33 Received: by 10.216.69.77 with SMTP id m55mr624001wed.11.1310038625417;\r
34         Thu, 07 Jul 2011 04:37:05 -0700 (PDT)\r
35 Received: from megatron (dhcp-91-036.inf.ed.ac.uk [129.215.91.36])\r
36         by mx.google.com with ESMTPS id 74sm4724972wem.41.2011.07.07.04.37.03\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Thu, 07 Jul 2011 04:37:03 -0700 (PDT)\r
39 Date: Thu, 7 Jul 2011 12:37:00 +0100\r
40 From: Patrick Totzke <patricktotzke@googlemail.com>\r
41 To: notmuch@notmuchmail.org\r
42 Subject: [python] querystrings as unicode literals?\r
43 Message-ID: <20110707113700.GA16347@megatron>\r
44 MIME-Version: 1.0\r
45 Content-Type: multipart/signed; micalg=pgp-sha1;\r
46         protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs"\r
47 Content-Disposition: inline\r
48 User-Agent: Mutt/1.5.21 (2010-09-15)\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Thu, 07 Jul 2011 11:37:07 -0000\r
62 \r
63 \r
64 --82I3+IH0IqGh5yIs\r
65 Content-Type: text/plain; charset=us-ascii\r
66 Content-Disposition: inline\r
67 Content-Transfer-Encoding: quoted-printable\r
68 \r
69 Hi!\r
70 Something strange goes on when I use unicode literals as querystrings:\r
71 Database().create_query(u'teststring') yields different results than\r
72 Database().create_query('teststring')..\r
73 \r
74 Now it should not be a problem to decode the string to whatever encoding\r
75 is used by notmuch/xapian internally using 'teststring'.encode('utf8')\r
76 for example. But can I reliably expect all strings in the index to be valid=\r
77  utf8?\r
78 \r
79 At any rate, I think this conversion should be made from inside the binding=\r
80 s.\r
81 A query should return the same results for querystrings as string- and unic=\r
82 ode literals.=20\r
83 Any thoughts?\r
84 /p\r
85 \r
86 \r
87 --82I3+IH0IqGh5yIs\r
88 Content-Type: application/pgp-signature; name="signature.asc"\r
89 Content-Description: Digital signature\r
90 \r
91 -----BEGIN PGP SIGNATURE-----\r
92 Version: GnuPG v1.4.11 (GNU/Linux)\r
93 \r
94 iEYEARECAAYFAk4VmlwACgkQlDQDZ9fWxapIPwCgoI/fyOI8iF8VI6TbHYoiJUHY\r
95 Y5gAnilEeDMhrR636ohh/cw/WE1DWPtZ\r
96 =fOW3\r
97 -----END PGP SIGNATURE-----\r
98 \r
99 --82I3+IH0IqGh5yIs--\r