1 Return-Path: <amdragon@mit.edu>
\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 50932429E27
\r
6 for <notmuch@notmuchmail.org>; Mon, 12 Aug 2013 11:41:20 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id cCK1a5bDeXuP for <notmuch@notmuchmail.org>;
\r
16 Mon, 12 Aug 2013 11:41:15 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id ED00A431FD5
\r
20 for <notmuch@notmuchmail.org>; Mon, 12 Aug 2013 11:41:02 -0700 (PDT)
\r
21 X-AuditID: 12074422-b7ef78e000000935-34-52092c3eef9f
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 72.D0.02357.E3C29025; Mon, 12 Aug 2013 14:41:02 -0400 (EDT)
\r
25 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id r7CIepkk011673;
\r
27 Mon, 12 Aug 2013 14:40:51 -0400
\r
28 Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7CIemLR003744
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Mon, 12 Aug 2013 14:40:50 -0400
\r
34 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1V8x2u-0005yW-Kt; Mon, 12 Aug 2013 14:40:48 -0400
\r
37 From: Austin Clements <amdragon@MIT.EDU>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH 2/6] lib: Document which strings are returned in UTF-8
\r
40 Date: Mon, 12 Aug 2013 14:40:35 -0400
\r
41 Message-Id: <1376332839-22825-3-git-send-email-amdragon@mit.edu>
\r
42 X-Mailer: git-send-email 1.7.10.4
\r
43 In-Reply-To: <1376332839-22825-1-git-send-email-amdragon@mit.edu>
\r
44 References: <1376332839-22825-1-git-send-email-amdragon@mit.edu>
\r
45 X-Brightmail-Tracker:
\r
46 H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsUixG6nomunwxlk8PqspMX1mzOZHRg9nq26
\r
47 xRzAGMVlk5Kak1mWWqRvl8CVsW72eeaCF/wVrz+dY2xgfM3TxcjBISFgIrG1372LkRPIFJO4
\r
48 cG89G4gtJLCPUWLRdZkuRi4geyOjxNGm7ywQiSNMEr+/6ELYcxklDrdIgthsAhoS2/YvZwSx
\r
49 RQSkJXbenc0KMp9ZQE3iT5cKSFhYwE3i/soN7CA2i4CqxK/DfWAjeQUcJHYvXMkMcYOiRPez
\r
50 CWA3cAo4Stxffg5qrYPExl09jBMY+RcwMqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdXLzSzR
\r
51 S00p3cQIDhcXpR2MPw8qHWIU4GBU4uHN+MgRJMSaWFZcmXuIUZKDSUmUd5ImZ5AQX1J+SmVG
\r
52 YnFGfFFpTmrxIUYJDmYlEd4trEA53pTEyqrUonyYlDQHi5I477OnZwOFBNITS1KzU1MLUotg
\r
53 sjIcHEoSvKHaQI2CRanpqRVpmTklCGkmDk6Q4TxAw5tBaniLCxJzizPTIfKnGBWlxHktQBIC
\r
54 IImM0jy4Xlg8v2IUB3pFmNcXpIoHmArgul8BDWYCGmzUzAEyuCQRISXVwJhff3uhGEf4fB2T
\r
55 lX8Nfh6O2qg/yVn+dsKpGfZf1j750ZZrOEMuosfJa4v18caqTV85TtpcFD8jsS592hmD39P3
\r
56 1X2aXuyX3liq6XvTaMLBmEZ9paunTNZI3Pv44usuuRv71I54yXo8qCh+cmCHs+pLcb1s1q8L
\r
57 Fv7nSg6vlDsvcvml6zdbxmtKLMUZiYZazEXFiQBLDSedwgIAAA==
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.13
\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, 12 Aug 2013 18:41:20 -0000
\r
72 Any string that ultimately comes from notmuch_message_file_get_header
\r
75 lib/notmuch-private.h | 2 +-
\r
76 lib/notmuch.h | 6 +++---
\r
77 2 files changed, 4 insertions(+), 4 deletions(-)
\r
79 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
\r
80 index cc55bb9..eced03e 100644
\r
81 --- a/lib/notmuch-private.h
\r
82 +++ b/lib/notmuch-private.h
\r
83 @@ -386,7 +386,7 @@ void
\r
84 notmuch_message_file_restrict_headersv (notmuch_message_file_t *message,
\r
85 va_list va_headers);
\r
87 -/* Get the value of the specified header from the message.
\r
88 +/* Get the value of the specified header from the message as a UTF-8 string.
\r
90 * The header name is case insensitive.
\r
92 diff --git a/lib/notmuch.h b/lib/notmuch.h
\r
93 index 9fc34ef..998a4ae 100644
\r
96 @@ -767,7 +767,7 @@ notmuch_thread_get_messages (notmuch_thread_t *thread);
\r
98 notmuch_thread_get_matched_messages (notmuch_thread_t *thread);
\r
100 -/* Get the authors of 'thread'
\r
101 +/* Get the authors of 'thread' as a UTF-8 string.
\r
103 * The returned string is a comma-separated list of the names of the
\r
104 * authors of mail messages in the query results that belong to this
\r
105 @@ -781,7 +781,7 @@ notmuch_thread_get_matched_messages (notmuch_thread_t *thread);
\r
107 notmuch_thread_get_authors (notmuch_thread_t *thread);
\r
109 -/* Get the subject of 'thread'
\r
110 +/* Get the subject of 'thread' as a UTF-8 string.
\r
112 * The subject is taken from the first message (according to the query
\r
113 * order---see notmuch_query_set_sort) in the query results that
\r
114 @@ -1013,7 +1013,7 @@ notmuch_message_set_flag (notmuch_message_t *message,
\r
116 notmuch_message_get_date (notmuch_message_t *message);
\r
118 -/* Get the value of the specified header from 'message'.
\r
119 +/* Get the value of the specified header from 'message' as a UTF-8 string.
\r
121 * Common headers are stored in the database when the message is
\r
122 * indexed and will be returned from the database. Other headers will
\r