[PATCH] convert bitmap to unsigned char
[notmuch-archives.git] / c0 / a636de001317d8238c07ee69587d38be70422a
1 Return-Path: <sojkam1@fel.cvut.cz>\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 01F9442D28D\r
6         for <notmuch@notmuchmail.org>; Fri, 21 Jan 2011 01:59:57 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 FDLW2EMjBz-M for <notmuch@notmuchmail.org>;\r
16         Fri, 21 Jan 2011 01:59:56 -0800 (PST)\r
17 Received: from mail.loccal.net (gw.loccal.net [94.142.235.206])\r
18         by olra.theworths.org (Postfix) with ESMTP id 13D70431FB6\r
19         for <notmuch@notmuchmail.org>; Fri, 21 Jan 2011 01:59:51 -0800 (PST)\r
20 Received: from localhost (localhost [127.0.0.1])\r
21         by mail.loccal.net (Postfix) with ESMTP id 04182563D;\r
22         Fri, 21 Jan 2011 11:12:27 +0100 (CET)\r
23 X-Virus-Scanned: amavisd-new at loccal.net\r
24 Received: from mail.loccal.net ([127.0.0.1])\r
25         by localhost (mail.loccal.net [127.0.0.1]) (amavisd-new, port 10024)\r
26         with LMTP id tKDgWzwWEWIh; Fri, 21 Jan 2011 11:12:23 +0100 (CET)\r
27 Received: from steelpick.2x.cz (unknown [10.21.129.4])\r
28         by mail.loccal.net (Postfix) with ESMTPS id E473A1886D;\r
29         Fri, 21 Jan 2011 11:12:18 +0100 (CET)\r
30 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
31         (envelope-from <sojkam1@fel.cvut.cz>)\r
32         id 1PgDmP-0003jm-Iw; Fri, 21 Jan 2011 10:59:41 +0100\r
33 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH 2/3] new: Add all initial tags at once\r
36 Date: Fri, 21 Jan 2011 10:59:36 +0100\r
37 Message-Id: <1295603977-14326-4-git-send-email-sojkam1@fel.cvut.cz>\r
38 X-Mailer: git-send-email 1.7.2.3\r
39 In-Reply-To: <1295603977-14326-1-git-send-email-sojkam1@fel.cvut.cz>\r
40 References: <1295603977-14326-1-git-send-email-sojkam1@fel.cvut.cz>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 21 Jan 2011 09:59:57 -0000\r
54 \r
55 If there are several tags applied to the new messages, it is beneficial\r
56 to store them to the database at one, because it saves some time,\r
57 especially when the notmuch new is run for the first time.\r
58 \r
59 This patch decreased the time for initial import from 1h 35m to 1h 14m.\r
60 ---\r
61  notmuch-new.c |    2 ++\r
62  1 files changed, 2 insertions(+), 0 deletions(-)\r
63 \r
64 diff --git a/notmuch-new.c b/notmuch-new.c\r
65 index a2af045..d71e497 100644\r
66 --- a/notmuch-new.c\r
67 +++ b/notmuch-new.c\r
68 @@ -418,6 +418,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
69         /* success */\r
70         case NOTMUCH_STATUS_SUCCESS:\r
71             state->added_messages++;\r
72 +           notmuch_message_freeze (message);\r
73             for (tag=state->new_tags; *tag != NULL; tag++)\r
74                 notmuch_message_add_tag (message, *tag);\r
75             if (state->synchronize_flags == TRUE) {\r
76 @@ -433,6 +434,7 @@ add_files_recursive (notmuch_database_t *notmuch,\r
77                     notmuch_message_maildir_flags_to_tags (message);\r
78                 }\r
79             }\r
80 +           notmuch_message_thaw (message);\r
81             break;\r
82         /* Non-fatal issues (go on to next file) */\r
83         case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:\r
84 -- \r
85 1.7.2.3\r
86 \r