Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 42 / c526e1dd2e2f4470374689142e804595f145b8
1 Return-Path: <ingmar@exherbo.org>\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 13AF8431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 15:23:54 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id Ob2qfkmzy1uM for <notmuch@notmuchmail.org>;\r
11         Tue, 17 Nov 2009 15:23:52 -0800 (PST)\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.195])\r
13         by olra.theworths.org (Postfix) with ESMTP id 364C9431FAE\r
14         for <notmuch@notmuchmail.org>; Tue, 17 Nov 2009 15:23:52 -0800 (PST)\r
15 Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147])\r
16         by mx.perfora.net (node=mxus2) with ESMTP (Nemesis)\r
17         id 0MKobQ-1NAXOo3mDo-000PV3 for notmuch@notmuchmail.org;\r
18         Tue, 17 Nov 2009 18:23:51 -0500\r
19 Received: from [83.101.72.69] (helo=localhost)\r
20         by bach.exherbo.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69)\r
21         (envelope-from <ingmar@exherbo.org>)\r
22         id 1NAXOm-0001SR-MD; Tue, 17 Nov 2009 23:23:49 +0000\r
23 From: Ingmar Vanhassel <ingmar@exherbo.org>\r
24 To: <notmuch@notmuchmail.org>\r
25 Date: Wed, 18 Nov 2009 00:23:42 +0100\r
26 Message-Id: <1258500222-32066-1-git-send-email-ingmar@exherbo.org>\r
27 X-Mailer: git-send-email 1.6.5.2.433.g23cdb\r
28 Subject: [notmuch] [PATCH] Typsos\r
29 X-BeenThere: notmuch@notmuchmail.org\r
30 X-Mailman-Version: 2.1.12\r
31 Precedence: list\r
32 List-Id: "Use and development of the notmuch mail system."\r
33         <notmuch.notmuchmail.org>\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
35         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
37 List-Post: <mailto:notmuch@notmuchmail.org>\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
40         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
41 X-List-Received-Date: Tue, 17 Nov 2009 23:23:54 -0000\r
42 \r
43 ---\r
44  Makefile                |    4 ++--\r
45  README                  |    6 +++---\r
46  gmime-filter-reply.h    |    2 +-\r
47  lib/database.cc         |    2 +-\r
48  lib/index.cc            |    2 +-\r
49  lib/message.cc          |    2 +-\r
50  lib/messages.c          |    2 +-\r
51  lib/notmuch-private.h   |    2 +-\r
52  lib/notmuch.h           |   10 +++++-----\r
53  lib/sha1.c              |    2 +-\r
54  lib/thread.cc           |    2 +-\r
55  notmuch-completion.bash |    2 +-\r
56  notmuch-new.c           |    4 ++--\r
57  notmuch-search.c        |    2 +-\r
58  notmuch.1               |    4 ++--\r
59  notmuch.el              |   10 +++++-----\r
60  show-message.c          |    2 +-\r
61  17 files changed, 30 insertions(+), 30 deletions(-)\r
62 \r
63 diff --git a/Makefile b/Makefile\r
64 index 436dacf..96aaa73 100644\r
65 --- a/Makefile\r
66 +++ b/Makefile\r
67 @@ -1,4 +1,4 @@\r
68 -# Default FLAGS, (can be overriden by user such as "make CFLAGS=-O2")\r
69 +# Default FLAGS, (can be overridden by user such as "make CFLAGS=-O2")\r
70  WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum\r
71  CFLAGS=-O2\r
72  \r
73 @@ -14,7 +14,7 @@ override CXXFLAGS += $(WARN_FLAGS) $(extra_cflags) $(extra_cxxflags)\r
74  override LDFLAGS += `pkg-config --libs glib-2.0 gmime-2.4 talloc` \\r
75                         `xapian-config --libs`\r
76  \r
77 -# Include our local Makfile.local first so that its first target is default\r
78 +# Include our local Makefile.local first so that its first target is default\r
79  include Makefile.local\r
80  include lib/Makefile.local\r
81  \r
82 diff --git a/README b/README\r
83 index 40f05ab..27af77f 100644\r
84 --- a/README\r
85 +++ b/README\r
86 @@ -3,7 +3,7 @@ Notmuch - thread-based email index, search and tagging.\r
87  Notmuch is a system for indexing, searching, reading, and tagging\r
88  large collections of email messages. It uses the Xapian library to\r
89  provide fast, full-text search of very large collection of email with\r
90 -a very convenient search syntas.\r
91 +a very convenient search syntax.\r
92  \r
93  Notmuch is free software, released under the GNU General Public\r
94  License version 3 (or later).\r
95 @@ -45,7 +45,7 @@ obtaining a more sophisticated interface:\r
96         notmuch.el file in this distribution.\r
97  \r
98         If someone were to write a curses-based interface, or similar,\r
99 -       it might also be reasonable to buil on the "notmuch"\r
100 +       it might also be reasonable to build on the "notmuch"\r
101         command-line interface.\r
102  \r
103       2. Build on top of the notmuch library interface.\r
104 @@ -67,4 +67,4 @@ still in development. We would appreciate any contributions to these\r
105  efforts.\r
106  \r
107  \r
108 -       \r
109 \ No newline at end of file\r
110 +       \r
111 diff --git a/gmime-filter-reply.h b/gmime-filter-reply.h\r
112 index 41cbc13..b7cbc6b 100644\r
113 --- a/gmime-filter-reply.h\r
114 +++ b/gmime-filter-reply.h\r
115 @@ -40,7 +40,7 @@ typedef struct _GMimeFilterReplyClass GMimeFilterReplyClass;\r
116   * @saw_nl: previous char was a \n\r
117   * @saw_angle: previous char was a >\r
118   *\r
119 - * A filter to insert/remove reply markers (lines begining with >)\r
120 + * A filter to insert/remove reply markers (lines beginning with >)\r
121   **/\r
122  struct _GMimeFilterReply {\r
123         GMimeFilter parent_object;\r
124 diff --git a/lib/database.cc b/lib/database.cc\r
125 index 3c8d626..27597cf 100644\r
126 --- a/lib/database.cc\r
127 +++ b/lib/database.cc\r
128 @@ -180,7 +180,7 @@ notmuch_status_to_string (notmuch_status_t status)\r
129      case NOTMUCH_STATUS_TAG_TOO_LONG:\r
130         return "Tag value is too long (exceeds NOTMUCH_TAG_MAX)";\r
131      case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW:\r
132 -       return "Unblanced number of calls to notmuch_message_freeze/thaw";\r
133 +       return "Unbalanced number of calls to notmuch_message_freeze/thaw";\r
134      default:\r
135      case NOTMUCH_STATUS_LAST_STATUS:\r
136         return "Unknown error status value";\r
137 diff --git a/lib/index.cc b/lib/index.cc\r
138 index 65b83b3..80df64b 100644\r
139 --- a/lib/index.cc\r
140 +++ b/lib/index.cc\r
141 @@ -198,7 +198,7 @@ _index_mime_part (notmuch_message_t *message,\r
142                 if (i == 1)\r
143                     continue;\r
144                 if (i > 1)\r
145 -                   fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Indexing anyway.\n");\r
146 +                   fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Indexing anyway.\n");\r
147             }\r
148             _index_mime_part (message,\r
149                               g_mime_multipart_get_part (multipart, i));\r
150 diff --git a/lib/message.cc b/lib/message.cc\r
151 index a4b090b..1d6623f 100644\r
152 --- a/lib/message.cc\r
153 +++ b/lib/message.cc\r
154 @@ -144,7 +144,7 @@ _notmuch_message_create (const void *talloc_owner,\r
155  }\r
156  \r
157  /* Create a new notmuch_message_t object for a specific message ID,\r
158 - * (which may or may not already exist in the databas).\r
159 + * (which may or may not already exist in the database).\r
160   *\r
161   * Here, 'talloc owner' is an optional talloc context to which the new\r
162   * message will belong. This allows for the caller to not bother\r
163 diff --git a/lib/messages.c b/lib/messages.c\r
164 index a588f8f..2f7c283 100644\r
165 --- a/lib/messages.c\r
166 +++ b/lib/messages.c\r
167 @@ -47,7 +47,7 @@ _notmuch_message_list_create (const void *ctx)\r
168      return list;\r
169  }\r
170  \r
171 -/* Append 'node' (which can of course point to an aribtrarily long\r
172 +/* Append 'node' (which can of course point to an arbitrarily long\r
173   * list of nodes) to the end of 'list'.\r
174   */\r
175  void\r
176 diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h\r
177 index 6036ce4..af82e58 100644\r
178 --- a/lib/notmuch-private.h\r
179 +++ b/lib/notmuch-private.h\r
180 @@ -235,7 +235,7 @@ notmuch_message_file_open (const char *filename);\r
181  notmuch_message_file_t *\r
182  _notmuch_message_file_open_ctx (void *ctx, const char *filename);\r
183  \r
184 -/* Close a notmuch message preivously opened with notmuch_message_open. */\r
185 +/* Close a notmuch message previously opened with notmuch_message_open. */\r
186  void\r
187  notmuch_message_file_close (notmuch_message_file_t *message);\r
188  \r
189 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
190 index 32b5332..384c177 100644\r
191 --- a/lib/notmuch.h\r
192 +++ b/lib/notmuch.h\r
193 @@ -222,7 +222,7 @@ notmuch_database_get_timestamp (notmuch_database_t *database,\r
194  \r
195  /* Add a new message to the given notmuch database.\r
196   *\r
197 - * Here,'filename' should be a path relative to the the path of\r
198 + * Here,'filename' should be a path relative to the path of\r
199   * 'database' (see notmuch_database_get_path), or else should be an\r
200   * absolute filename with initial components that match the path of\r
201   * 'database'.\r
202 @@ -258,7 +258,7 @@ notmuch_database_add_message (notmuch_database_t *database,\r
203                               const char *filename,\r
204                               notmuch_message_t **message);\r
205  \r
206 -/* Find a message with the given messsage_id.\r
207 +/* Find a message with the given message_id.\r
208   *\r
209   * If the database contains a message with the given message_id, then\r
210   * a new notmuch_message_t object is returned. The caller should call\r
211 @@ -620,7 +620,7 @@ notmuch_messages_advance (notmuch_messages_t *messages);\r
212  /* Destroy a notmuch_messages_t object.\r
213   *\r
214   * It's not strictly necessary to call this function. All memory from\r
215 - * the notmuch_messages_t object will be reclaimed when the containg\r
216 + * the notmuch_messages_t object will be reclaimed when the containing\r
217   * query object is destroyed.\r
218   */\r
219  void\r
220 @@ -865,7 +865,7 @@ notmuch_tags_has_more (notmuch_tags_t *tags);\r
221  /* Get the current tag from 'tags' as a string.\r
222   *\r
223   * Note: The returned string belongs to 'tags' and has a lifetime\r
224 - * identical to it (and the query to which it utlimately belongs).\r
225 + * identical to it (and the query to which it ultimately belongs).\r
226   *\r
227   * See the documentation of notmuch_message_get_tags for example code\r
228   * showing how to iterate over a notmuch_tags_t object.\r
229 @@ -884,7 +884,7 @@ notmuch_tags_advance (notmuch_tags_t *tags);\r
230  /* Destroy a notmuch_tags_t object.\r
231   *\r
232   * It's not strictly necessary to call this function. All memory from\r
233 - * the notmuch_tags_t object will be reclaimed when the containg\r
234 + * the notmuch_tags_t object will be reclaimed when the containing\r
235   * message or query objects are destroyed.\r
236   */\r
237  void\r
238 diff --git a/lib/sha1.c b/lib/sha1.c\r
239 index ff4dd16..cc48108 100644\r
240 --- a/lib/sha1.c\r
241 +++ b/lib/sha1.c\r
242 @@ -43,7 +43,7 @@ _hex_of_sha1_digest (const unsigned char digest[SHA1_DIGEST_SIZE])\r
243      return result;\r
244  }\r
245  \r
246 -/* Create a hexadcimal string version of the SHA-1 digest of 'str'\r
247 +/* Create a hexadecimal string version of the SHA-1 digest of 'str'\r
248   * (including its null terminating character).\r
249   *\r
250   * This function returns a newly allocated string which the caller\r
251 diff --git a/lib/thread.cc b/lib/thread.cc\r
252 index 4411d64..da58edc 100644\r
253 --- a/lib/thread.cc\r
254 +++ b/lib/thread.cc\r
255 @@ -190,7 +190,7 @@ _resolve_thread_relationships (unused (notmuch_thread_t *thread))\r
256   * subject line, the total count of messages, and all authors). The\r
257   * second search is for all messages that are in the thread and that\r
258   * also match the given query_string. This is to allow for a separate\r
259 - * count of matched messages, and to allow a viewer to diplay these\r
260 + * count of matched messages, and to allow a viewer to display these\r
261   * messages differently.\r
262   *\r
263   * Here, 'ctx' is talloc context for the resulting thread object.\r
264 diff --git a/notmuch-completion.bash b/notmuch-completion.bash\r
265 index ad55f6d..cdad05d 100644\r
266 --- a/notmuch-completion.bash\r
267 +++ b/notmuch-completion.bash\r
268 @@ -1,4 +1,4 @@\r
269 -# Bash completion for notmutch\r
270 +# Bash completion for notmuch\r
271  #\r
272  # Copyright © 2009 Carl Worth\r
273  #\r
274 diff --git a/notmuch-new.c b/notmuch-new.c\r
275 index 83a05ba..5405a9f 100644\r
276 --- a/notmuch-new.c\r
277 +++ b/notmuch-new.c\r
278 @@ -303,7 +303,7 @@ add_files (notmuch_database_t *notmuch,\r
279  \r
280  /* XXX: This should be merged with the add_files function since it\r
281   * shares a lot of logic with it. */\r
282 -/* Recursively count all regular files in path and all sub-direcotries\r
283 +/* Recursively count all regular files in path and all sub-directories\r
284   * of path.  The result is added to *count (which should be\r
285   * initialized to zero by the top-level caller before calling\r
286   * count_files). */\r
287 @@ -469,7 +469,7 @@ notmuch_new_command (void *ctx,\r
288  \r
289      if (elapsed > 1 && ! add_files_state.saw_read_only_directory) {\r
290         printf ("\nTip: If you have any sub-directories that are archives (that is,\n"\r
291 -               "they will never receive new mail), marking these directores as\n"\r
292 +               "they will never receive new mail), marking these directories as\n"\r
293                 "read-only (chmod u-w /path/to/dir) will make \"notmuch new\"\n"\r
294                 "much more efficient (it won't even look in those directories).\n");\r
295      }\r
296 diff --git a/notmuch-search.c b/notmuch-search.c\r
297 index 8db09c7..ac81372 100644\r
298 --- a/notmuch-search.c\r
299 +++ b/notmuch-search.c\r
300 @@ -76,7 +76,7 @@ notmuch_search_command (void *ctx, int argc, char *argv[])\r
301  \r
302      query_str = query_string_from_args (ctx, argc, argv);\r
303      if (query_str == NULL) {\r
304 -       fprintf (stderr, "Out of moemory.\n");\r
305 +       fprintf (stderr, "Out of memory.\n");\r
306         return 1;\r
307      }\r
308  \r
309 diff --git a/notmuch.1 b/notmuch.1\r
310 index 6c3d10f..86d5f59 100644\r
311 --- a/notmuch.1\r
312 +++ b/notmuch.1\r
313 @@ -60,7 +60,7 @@ archives, and will then proceed to build a database that indexes the\r
314  mail to allow for fast search of the archive.\r
315  \r
316  This directory can contain any number of sub-directories and should\r
317 -primarily contain only files with indvidual email messages\r
318 +primarily contain only files with individual email messages\r
319  (eg. maildir or mh archives are perfect). If there are other,\r
320  non-email files (such as indexes maintained by other email programs)\r
321  then notmuch will do its best to detect those and ignore them.\r
322 @@ -173,7 +173,7 @@ Constructs a reply template for a set of messages.\r
323  \r
324  See the documentation of\r
325  .B search\r
326 -for deatils of the supported syntax of search terms.\r
327 +for details of the supported syntax of search terms.\r
328  \r
329  To make replying to email easier,\r
330  .B notmuch reply\r
331 diff --git a/notmuch.el b/notmuch.el\r
332 index 8894a8e..7e01ed6 100644\r
333 --- a/notmuch.el\r
334 +++ b/notmuch.el\r
335 @@ -205,7 +205,7 @@ Unlike builtin `next-line' this version accepts no arguments."\r
336  (defun notmuch-show-mark-read-then-archive-thread ()\r
337    "Remove \"unread\" tag from each message, then archive and show next thread.\r
338  \r
339 -Archive each message currrently shown by removing the \"unread\"\r
340 +Archive each message currently shown by removing the \"unread\"\r
341  and \"inbox\" tag from each. Then kill this buffer and show the\r
342  next thread from the search from which this thread was originally\r
343  shown.\r
344 @@ -220,7 +220,7 @@ buffer."\r
345  (defun notmuch-show-archive-thread ()\r
346    "Archive each message in thread, and show next thread from search.\r
347  \r
348 -Archive each message currrently shown by removing the \"inbox\"\r
349 +Archive each message currently shown by removing the \"inbox\"\r
350  tag from each. Then kill this buffer and show the next thread\r
351  from the search from which this thread was originally shown.\r
352  \r
353 @@ -340,7 +340,7 @@ there are no more unread messages past the current point."\r
354        (notmuch-show-next-message)))\r
355  \r
356  (defun notmuch-show-next-open-message ()\r
357 -  "Advance to the the next message which is not hidden.\r
358 +  "Advance to the next message which is not hidden.\r
359  \r
360  If read messages are currently hidden, advance to the next unread\r
361  message. Otherwise, advance to the next message."\r
362 @@ -674,7 +674,7 @@ thread from that buffer can be show when done with this one)."\r
363        )))\r
364  \r
365  (defvar notmuch-search-authors-width 40\r
366 -  "Number of columns to use to diplay authors in a notmuch-search buffer.")\r
367 +  "Number of columns to use to display authors in a notmuch-search buffer.")\r
368  \r
369  (defvar notmuch-search-mode-map\r
370    (let ((map (make-sparse-keymap)))\r
371 @@ -910,7 +910,7 @@ the beginning of the buffer).\r
372  \r
373  This command toggles the sort order for the current search.\r
374  \r
375 -Note that any fitlered searches created by\r
376 +Note that any filtered searches created by\r
377  `notmuch-search-filter' retain the search order of the parent\r
378  search."\r
379    (interactive)\r
380 diff --git a/show-message.c b/show-message.c\r
381 index 79b02e2..38f5897 100644\r
382 --- a/show-message.c\r
383 +++ b/show-message.c\r
384 @@ -38,7 +38,7 @@ show_message_part (GMimeObject *part, int *part_count,\r
385                 if (i == 1)\r
386                     continue;\r
387                 if (i > 1)\r
388 -                   fprintf (stderr, "Warning: Unexpected extra parts of mutlipart/signed. Continuing.\n");\r
389 +                   fprintf (stderr, "Warning: Unexpected extra parts of multipart/signed. Continuing.\n");\r
390             }\r
391             show_message_part (g_mime_multipart_get_part (multipart, i),\r
392                                part_count, show_part);\r
393 -- \r
394 1.6.5.2.433.g23cdb\r
395 \r