Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 01 / dd3f73a2458d5e506190f0b1f7ecd7e88e5a30
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 29B9F431FC0\r
6         for <notmuch@notmuchmail.org>; Sat,  8 Sep 2012 10:24:39 -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.7\r
10 X-Spam-Level: \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 QusqGVHkNkGp for <notmuch@notmuchmail.org>;\r
16         Sat,  8 Sep 2012 10:24:37 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
18         [18.9.25.12])\r
19         by olra.theworths.org (Postfix) with ESMTP id E08F7431FAF\r
20         for <notmuch@notmuchmail.org>; Sat,  8 Sep 2012 10:24:33 -0700 (PDT)\r
21 X-AuditID: 1209190c-b7fd26d0000008d9-83-504b7f519174\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id EF.5B.02265.15F7B405; Sat,  8 Sep 2012 13:24:33 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q88HOXa4020245; \r
27         Sat, 8 Sep 2012 13:24:33 -0400\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q88HOWRL026365\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sat, 8 Sep 2012 13:24:33 -0400 (EDT)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1TAOlj-00061h-Se; Sat, 08 Sep 2012 13:24:31 -0400\r
37 Date: Sat, 8 Sep 2012 13:24:31 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Jameson Graef Rollins <jrollins@finestructure.net>\r
40 Subject: Re: [PATCH 05/11] lib: add ability to store recipients in message\r
41         structure\r
42 Message-ID: <20120908172431.GA22240@mit.edu>\r
43 References: <1345427570-26518-1-git-send-email-jrollins@finestructure.net>\r
44         <1345427570-26518-2-git-send-email-jrollins@finestructure.net>\r
45         <1345427570-26518-3-git-send-email-jrollins@finestructure.net>\r
46         <1345427570-26518-4-git-send-email-jrollins@finestructure.net>\r
47         <1345427570-26518-5-git-send-email-jrollins@finestructure.net>\r
48         <1345427570-26518-6-git-send-email-jrollins@finestructure.net>\r
49 MIME-Version: 1.0\r
50 Content-Type: text/plain; charset=us-ascii\r
51 Content-Disposition: inline\r
52 In-Reply-To: <1345427570-26518-6-git-send-email-jrollins@finestructure.net>\r
53 User-Agent: Mutt/1.5.21 (2010-09-15)\r
54 X-Brightmail-Tracker:\r
55  H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42IRYrdT1w2s9w4w2HZO1WLPPi+L6zdnMjsw\r
56         edw9zeXxbNUt5gCmKC6blNSczLLUIn27BK6MZ7fPMxdMFK1Yf3wWUwPjeoEuRg4OCQETif3H\r
57         zLoYOYFMMYkL99azdTFycQgJ7GOU+NG1jhnCWc8oMef0NBYI5wSTxKPL+6DKljBKbJr8iAWk\r
58         n0VARaJ5SQOYzSagIbFt/3JGEFtEwEyi58sfMJtZQEti68YPYLawQJhE85EZbCA2r4COxNXD\r
59         u1ghhvYzS2w6/4oFIiEocXLmExaY5hv/XjKB3M0sIC2x/B8HSJhTwFvi3KN97CC2KNANU05u\r
60         Y5vAKDQLSfcsJN2zELoXMDKvYpRNya3SzU3MzClOTdYtTk7My0st0jXUy80s0UtNKd3ECApq\r
61         TkmeHYxvDiodYhTgYFTi4d0g5xUgxJpYVlyZe4hRkoNJSZR3d413gBBfUn5KZUZicUZ8UWlO\r
62         avEhRgkOZiUR3uvpQDnelMTKqtSifJiUNAeLkjjv5ZSb/kIC6YklqdmpqQWpRTBZGQ4OJQne\r
63         8jqgRsGi1PTUirTMnBKENBMHJ8hwHqDhK0FqeIsLEnOLM9Mh8qcYFaXEeVeAJARAEhmleXC9\r
64         sKTzilEc6BVh3mqQKh5gwoLrfgU0mAlosMgzD5DBJYkIKakGxoX6E3gF0rfZ9/18aqj2oVb/\r
65         QfBspZB2Q02WKRe3br88WcW5+MRf1qaDpVyPLkw6ay3NecKDg+P8YeM87bdzdZ2K+otqD7Vk\r
66         rBD7W8u6acLRfi2PpvN/GEUmGNWm3TsyQfBPkah/wdPrwo4fhG9UuGddsArs73tWcOPbqdj8\r
67         3Qv+7zj49t+xn0osxRmJhlrMRcWJAAOqUgsVAwAA\r
68 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
69 X-BeenThere: notmuch@notmuchmail.org\r
70 X-Mailman-Version: 2.1.13\r
71 Precedence: list\r
72 List-Id: "Use and development of the notmuch mail system."\r
73         <notmuch.notmuchmail.org>\r
74 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
76 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
77 List-Post: <mailto:notmuch@notmuchmail.org>\r
78 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
79 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
80         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
81 X-List-Received-Date: Sat, 08 Sep 2012 17:24:39 -0000\r
82 \r
83 Quoth Jameson Graef Rollins on Aug 19 at  6:52 pm:\r
84 > Added as a string, in parallel to the authors element.\r
85 > ---\r
86 >  lib/message.cc        |   18 ++++++++++++++++++\r
87 >  lib/notmuch-private.h |    9 +++++++++\r
88 >  2 files changed, 27 insertions(+)\r
89\r
90 > diff --git a/lib/message.cc b/lib/message.cc\r
91 > index 978de06..fa28073 100644\r
92 > --- a/lib/message.cc\r
93 > +++ b/lib/message.cc\r
94 > @@ -36,6 +36,7 @@ struct visible _notmuch_message {\r
95 >      notmuch_string_list_t *filename_term_list;\r
96 >      notmuch_string_list_t *filename_list;\r
97 >      char *author;\r
98 > +    char *recipients;\r
99 >      notmuch_message_file_t *message_file;\r
100 >      notmuch_message_list_t *replies;\r
101 >      unsigned long flags;\r
102 > @@ -109,6 +110,7 @@ _notmuch_message_create_for_document (const void *talloc_owner,\r
103 >      message->filename_list = NULL;\r
104 >      message->message_file = NULL;\r
105 >      message->author = NULL;\r
106 > +    message->recipients = NULL;\r
107 >  \r
108 >      message->replies = _notmuch_message_list_create (message);\r
109 >      if (unlikely (message->replies == NULL)) {\r
110 > @@ -808,6 +810,22 @@ notmuch_message_set_author (notmuch_message_t *message,\r
111 >      return;\r
112 >  }\r
113 >  \r
114 > +const char *\r
115 > +notmuch_message_get_recipients (notmuch_message_t *message)\r
116 > +{\r
117 > +    return message->recipients;\r
118 > +}\r
119 > +\r
120 > +void\r
121 > +notmuch_message_set_recipients (notmuch_message_t *message,\r
122 > +                             const char *recipients)\r
123 > +{\r
124 > +    if (message->recipients)\r
125 > +     talloc_free(message->recipients);\r
126 > +    message->recipients = talloc_strdup(message, recipients);\r
127 \r
128 Missing spaces before parameter lists.\r
129 \r
130 > +    return;\r
131 > +}\r
132 > +\r
133 >  void\r
134 >  _notmuch_message_set_header_values (notmuch_message_t *message,\r
135 >                                   const char *date,\r
136 > diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
137 > index bfb4111..27a41b6 100644\r
138 > --- a/lib/notmuch-private.h\r
139 > +++ b/lib/notmuch-private.h\r
140 > @@ -325,6 +325,15 @@ notmuch_message_set_author (notmuch_message_t *message, const char *author);\r
141 >  const char *\r
142 >  notmuch_message_get_author (notmuch_message_t *message);\r
143 >  \r
144 > +/* Set the recipients of 'message' - this is the representation used\r
145 > + * when displaying the message */\r
146 > +void\r
147 > +notmuch_message_set_recipients (notmuch_message_t *message, const char *recipients);\r
148 > +\r
149 > +/* Get the authors of 'message' */\r
150 > +const char *\r
151 > +notmuch_message_get_recipients (notmuch_message_t *message);\r
152 > +\r
153 >  \r
154 >  /* index.cc */\r
155 >  \r
156 \r
157 -- \r
158 Austin Clements                                      MIT/'06/PhD/CSAIL\r
159 amdragon@mit.edu                           http://web.mit.edu/amdragon\r
160        Somewhere in the dream we call reality you will find me,\r
161               searching for the reality we call dreams.\r