Re: [PATCH 3/5] nmbug-status: Add an nmbug-status(5) man page
[notmuch-archives.git] / 16 / 27a8e5991eed9bc5775f812b02e1cc533143d5
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 06CD9431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 07:04:23 -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 p3PCmF4JR4Jz for <notmuch@notmuchmail.org>;\r
17         Mon, 11 Jul 2011 07:04:22 -0700 (PDT)\r
18 Received: from homiemail-a23.g.dreamhost.com (caiajhbdcagg.dreamhost.com\r
19         [208.97.132.66])\r
20         by olra.theworths.org (Postfix) with ESMTP id 6BCF8431FB6\r
21         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 07:04:22 -0700 (PDT)\r
22 Received: from homiemail-a23.g.dreamhost.com (localhost [127.0.0.1])\r
23         by homiemail-a23.g.dreamhost.com (Postfix) with ESMTP id DDBA74B007C\r
24         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 07:04:21 -0700 (PDT)\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject\r
26         :date:message-id:mime-version:content-type; q=dns; s=sspaeth.de;\r
27         b=YEu/u/nPXmYfPzla3/gcBXPLf/8V/nj2oXgR2hpDyb+DzBqLc6/G1NmhkmVTM\r
28         90T1R9IFLEpj7rBTIw/uRWVoqBCYOtKL98g/YSArX3ahqNFqAGfOV6HgBlTNdCAq\r
29         XIJ4vm6JpVMb2Igx0ZB+FgH/LT+m7QDAdyeo32+omc01NM=\r
30 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to\r
31         :subject:date:message-id:mime-version:content-type; s=sspaeth.de\r
32         ; bh=swcpRGl/tL3sgwdxW+OSa2e9VH4=; b=bxBSUMHXTrkP9CTtHO2nEcStVHI\r
33         xU2IT38P6BgH/WstYxgYo1/EFYx/mz+QAcrEwf9nhJLUhoHKP9ArOqs4GFR9pd+d\r
34         ij1m330O7LH1G6rVjNB2m2IeSCstdd/TPze76ItydzwAOw6wQcv4kGTtVV6X6eWE\r
35         qkS0fAQxWYPDl6MU=\r
36 Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-253.ethz.ch\r
37         [129.132.133.253])\r
38         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
39         (No client certificate requested)\r
40         (Authenticated sender: fax@sspaeth.de)\r
41         by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPSA id 83E104B006D\r
42         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 07:04:20 -0700 (PDT)\r
43 Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
44         Mon, 11 Jul 2011 16:04:18 +0200\r
45 From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
46 To: Notmuch developer list <notmuch@notmuchmail.org>\r
47 Subject: Encodings\r
48 User-Agent: Notmuch/0.5-233-gb404931 (http://notmuchmail.org) Emacs/23.2.1\r
49         (x86_64-pc-linux-gnu)\r
50 Date: Mon, 11 Jul 2011 16:04:17 +0200\r
51 Message-ID: <87zkkkx6am.fsf@SSpaeth.de>\r
52 MIME-Version: 1.0\r
53 Content-Type: multipart/signed; boundary="=-=-=";\r
54         micalg=pgp-sha1; protocol="application/pgp-signature"\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Mon, 11 Jul 2011 14:04:23 -0000\r
68 \r
69 --=-=-=\r
70 \r
71 Hi all,\r
72 after I was notified about how notmuch's python bindings perform\r
73 differently depending on whether we hand it (byte-based) ASCII strings\r
74 or unicode, I tried to disentangle what encodings to expect and send it\r
75 to. The answer is that things are very implicit. notmuch.h speaks of\r
76 strings but never mentions encodings, xapian docs don't mention\r
77 encodings but ojwb confirmed that it expects utf-8.\r
78 \r
79 So, can be document what encoding we are expected to pass in the various\r
80 APIs and where we can guarantee to actually return UTF-8 encoded\r
81 strings? For some of the stuff we read directly from the files, eg\r
82 arbitrary headers, we can probably be least sure, but are e.g. the\r
83 returned tags always utf-8?\r
84 \r
85 I would love to make the python bindings use unicode() instances in\r
86 cases where we can be sure to actually receive utf-8 encoded strings.\r
87 \r
88 Encodings make my brain hurt. Unfortunately one cannot simply ignore\r
89 them.\r
90 \r
91 Sebastian\r
92 \r
93 --=-=-=\r
94 Content-Type: application/pgp-signature\r
95 \r
96 -----BEGIN PGP SIGNATURE-----\r
97 Version: GnuPG v1.4.11 (GNU/Linux)\r
98 \r
99 iEYEARECAAYFAk4bAuIACgkQVYX1jMgnoGIIpgCgho4j/M9KGQWPXCbQL3GBf0mJ\r
100 hdUAoIBEDWloS3Lfs1lNKau3MuT34apG\r
101 =u5cR\r
102 -----END PGP SIGNATURE-----\r
103 --=-=-=--\r