[PATCH 0/6] compactor changes
[notmuch-archives.git] / 03 / b66a35988207ce026eff9d2644188eab7f6235
1 Return-Path: <jani@nikula.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 0D257431FBC\r
6         for <notmuch@notmuchmail.org>; Fri,  1 Nov 2013 07:27:36 -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 laMTwDZ7RIor for <notmuch@notmuchmail.org>;\r
16         Fri,  1 Nov 2013 07:27:31 -0700 (PDT)\r
17 Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com\r
18         [209.85.215.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id ABDF7431FAE\r
21         for <notmuch@notmuchmail.org>; Fri,  1 Nov 2013 07:27:31 -0700 (PDT)\r
22 Received: by mail-ea0-f173.google.com with SMTP id g10so2093692eak.32\r
23         for <notmuch@notmuchmail.org>; Fri, 01 Nov 2013 07:27:30 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
27         bh=LB8V6juHVnS4Pqsv8ytkxa8lYIB9GoBySQIMqlGDZ0I=;\r
28         b=dVyfYtxpi8X5lMpkurJDpbv2f5tszWzptxYNJcmhh6OEvvMJErBfzM2k8/IAcyc1Fw\r
29         wPZ2xjUPS3IMYugb4MLbYcpqgH0p3zgBQWkyQQTbxpP5CJr4I1C61hxst5Le3/0vHFU/\r
30         w89mZjb9+7dZzZTN3hjapeW2TH4THH++T4OqFj7KUZClOiL7ky80kmr0pUCdsz1fU5d5\r
31         RqU3LVMtaV11SwdiL0pM3wKG9luaXnXUcBJDcOWN9OHvmqAZf6wYzl3Ss21+rF4x1CfB\r
32         jmaymmI4wmYIz4/p/3x9w6Uq9AS9YxVbEzgJpNFz3U7+MeeeYi3BZ83EROMkbUA4oBE9\r
33         7frg==\r
34 X-Gm-Message-State:\r
35  ALoCoQnLL7u7u6RhrJg+gbfvcwmrluDzJlA9JoiX29/jce28p+T7g3OZ02Bt5i8Mz+btJY6X/DiP\r
36 X-Received: by 10.15.44.8 with SMTP id y8mr3533337eev.38.1383316050296;\r
37         Fri, 01 Nov 2013 07:27:30 -0700 (PDT)\r
38 Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
39         by mx.google.com with ESMTPSA id e13sm8393770eeu.4.2013.11.01.07.27.28\r
40         for <multiple recipients>\r
41         (version=TLSv1.1 cipher=RC4-SHA bits=128/128);\r
42         Fri, 01 Nov 2013 07:27:29 -0700 (PDT)\r
43 From: Jani Nikula <jani@nikula.org>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 0/6] compactor changes\r
46 Date: Fri,  1 Nov 2013 15:27:09 +0100\r
47 Message-Id: <cover.1383315568.git.jani@nikula.org>\r
48 X-Mailer: git-send-email 1.7.2.5\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Fri, 01 Nov 2013 14:27:36 -0000\r
62 \r
63 David was a bit hasty with pushing compact, so I missed the\r
64 review. Instead of just whining about it, here's a few changes I'd\r
65 really like to see merged before release. Completely untested, needs man\r
66 page updates and probably test changes too, so there's a bit more to do\r
67 still. Hint, if you have the time, just pick up from here. ;)\r
68 \r
69 Cheers,\r
70 Jani.\r
71 \r
72 \r
73 Jani Nikula (6):\r
74   lib: construct compactor within try block to catch any exceptions\r
75   lib: add closure parameter to compact status update callback\r
76   lib: use the backup path provided by the user, don't add anything to\r
77     it\r
78   cli: return error status if compaction fails\r
79   cli: add compact --backup=FILE option, don't backup by default\r
80   cli: add compact --verbose option and silence output without it\r
81 \r
82  lib/database.cc   |   29 ++++++++++++++---------------\r
83  lib/notmuch.h     |    5 +++--\r
84  notmuch-compact.c |   46 +++++++++++++++++++++++++++-------------------\r
85  3 files changed, 44 insertions(+), 36 deletions(-)\r
86 \r
87 -- \r
88 1.7.2.5\r
89 \r