Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 5f / 02b3342e12b663f10f0097985beac9a6ecf50d
1 Return-Path: <ckanru@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 olra.theworths.org (Postfix) with ESMTP id 9C204429E25\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Sep 2011 21:38:26 -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.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         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 kZ36J3wQGfMi for <notmuch@notmuchmail.org>;\r
17         Tue, 13 Sep 2011 21:38:25 -0700 (PDT)\r
18 Received: from mail-gx0-f171.google.com (mail-gx0-f171.google.com\r
19         [209.85.161.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 06EBC431FB6\r
22         for <notmuch@notmuchmail.org>; Tue, 13 Sep 2011 21:38:24 -0700 (PDT)\r
23 Received: by gxk22 with SMTP id 22so1476748gxk.2\r
24         for <notmuch@notmuchmail.org>; Tue, 13 Sep 2011 21:38:23 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=sender:from:to:cc:subject:in-reply-to:date:message-id:references\r
27         :user-agent:mime-version:content-type;\r
28         bh=rMVs2heN2wkhOFHnEEDbL15kZng0rCK29rpzIwxLqF8=;\r
29         b=TBiZUy5PAdLA4zfybfBBaywONxZ59abz93l9ZzRYK/LbIdG2LIgNaQXZ8MabhLpOV+\r
30         1V5y/c0CcT+Rlygmr7HggwFTkhUkCnvijVAImyPzNCzpqL6dQbzdhjvF7lo51lJjnGpC\r
31         aKBofrTl4pxsNqMrLg3WZuMu1iYX058DLj4IY=\r
32 Received: by 10.90.248.38 with SMTP id v38mr1715101agh.56.1315975103394;\r
33         Tue, 13 Sep 2011 21:38:23 -0700 (PDT)\r
34 Received: from isil.kanru.info (61-30-10-70.static.tfn.net.tw [61.30.10.70])\r
35         by mx.google.com with ESMTPS id w16sm5937550anl.2.2011.09.13.21.38.20\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Tue, 13 Sep 2011 21:38:22 -0700 (PDT)\r
38 Sender: Kan-Ru Chen <ckanru@gmail.com>\r
39 Received: from localhost ([127.0.0.1] helo=isil.kanru.info)\r
40         by isil.kanru.info with esmtp (Exim 4.76)\r
41         (envelope-from <kanru@kanru.info>)\r
42         id 1R3hEm-0001NC-CK; Wed, 14 Sep 2011 12:38:16 +0800\r
43 From: Kan-Ru Chen <kanru@kanru.info>\r
44 To: Martin Owens <doctormo@gmail.com>\r
45 Subject: Re: Unicode Paths\r
46 In-Reply-To: <1315972539.2201.11.camel@delen> (Martin Owens's message of "Tue,\r
47         13 Sep 2011 23:55:39 -0400")\r
48 Date: Wed, 14 Sep 2011 12:38:12 +0800\r
49 Message-ID: <8739fzwxfv.fsf@isil.kanru.info>\r
50 References: <1315972539.2201.11.camel@delen>\r
51 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain\r
54 Cc: Notmuch developer list <notmuch@notmuchmail.org>\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: Wed, 14 Sep 2011 04:38:26 -0000\r
68 \r
69 Martin Owens <doctormo@gmail.com> writes:\r
70 \r
71 > Hello Again,\r
72 >\r
73 > I notice in the lib code notmuch_database_open(),\r
74 > notmuch_database_create() these functions use const char *path for the\r
75 > directory path input. Is this unicode safe?\r
76 >\r
77 > The python bindings (and ctype docs) seem to suggest using something\r
78 > called 'wchar_t *' for accepting unicode but that's for C not C++.\r
79 >\r
80 > Is this something that should be patched?\r
81 \r
82 I think as long as the path does not contain embedded null character\r
83 then it is safe. Most posix filesystem does not allow null character in\r
84 the filename so you cannot use UTF-16 or UTF-32 to encode the unicode\r
85 path.\r
86 \r
87 -- \r
88 Kanru\r