Re: [PATCH] RFC: impliment gzipped output for notmuch dump
[notmuch-archives.git] / 6e / fa5e4e26d15026aa3bd14a04b83c779c5d383a
1 Return-Path: <jrollins@finestructure.net>\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 7A2BE431FBD\r
6         for <notmuch@notmuchmail.org>; Fri, 19 Jul 2013 07:48:21 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 S0qERT7WHkFZ for <notmuch@notmuchmail.org>;\r
16         Fri, 19 Jul 2013 07:48:16 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id DC365431FC2\r
20         for <notmuch@notmuchmail.org>; Fri, 19 Jul 2013 07:48:15 -0700 (PDT)\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by fire-doxen-postvirus (Postfix) with ESMTP id 56C2F328040;\r
23         Fri, 19 Jul 2013 07:48:15 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
25 Received: from finestructure.net (lair.fifthhorseman.net [108.58.6.98])\r
26         (Authenticated sender: jrollins)\r
27         by fire-doxen-submit (Postfix) with ESMTP id 7AAC232806D;\r
28         Fri, 19 Jul 2013 07:48:12 -0700 (PDT)\r
29 Received: by finestructure.net (Postfix, from userid 1000)\r
30         id 8F29762962; Fri, 19 Jul 2013 07:48:09 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>, notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH 0/3] Introduce the add command\r
34 In-Reply-To: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>\r
35 References: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>\r
36 User-Agent: Notmuch/0.15.2+223~g9020f68 (http://notmuchmail.org) Emacs/24.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 Date: Fri, 19 Jul 2013 07:48:06 -0700\r
39 Message-ID: <87wqom8v2x.fsf@servo.finestructure.net>\r
40 MIME-Version: 1.0\r
41 Content-Type: multipart/signed; boundary="=-=-=";\r
42         micalg=pgp-sha256; protocol="application/pgp-signature"\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Fri, 19 Jul 2013 14:48:21 -0000\r
56 \r
57 --=-=-=\r
58 Content-Type: text/plain\r
59 \r
60 On Sat, Jul 13 2013, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:\r
61 > The recent introduction of insert inspired me to finally add a feature I've\r
62 > been wanting: a command to index a specific file in the maildir. My usecase\r
63 > for this is that I have an inotify-based script that watches for new mail\r
64 > and calls notmuch new when new mail shows up. Running notmuch new in this\r
65 > situation is overkill, since I know exactly what's changed. A faster command\r
66 > that just adds a single file reduces contention on the database lock.\r
67 >\r
68 > This series introduces a new command, "notmuch add", which indexes a file\r
69 > that already exists in the maildir. It is implemented in notmuch-insert.c\r
70 > because it uses the basic infrastructure introduced for the insert command.\r
71 >\r
72 > Missing man page for now - wanted to get the code out first for review.\r
73 \r
74 Hey, Adam.  This feature seems fine, but it seems similar enought to\r
75 insert that I wonder if they can just be unified.  What if insert just\r
76 took an optional path argument as well, e.g.:\r
77 \r
78   notmuch insert [options] [ +<tag>|-<tag> ... ] [-- /path/to/file]\r
79 \r
80 If the path is not in the db, it would insert it the same as if it had\r
81 come in via stdin.  If the path *is* in the db, it could just do the add\r
82 part that you're looking for.  That seems like it might be a more\r
83 intuitive UI experience to me.\r
84 \r
85 jamie.\r
86 \r
87 --=-=-=\r
88 Content-Type: application/pgp-signature\r
89 \r
90 -----BEGIN PGP SIGNATURE-----\r
91 Version: GnuPG v1.4.12 (GNU/Linux)\r
92 \r
93 iQIcBAEBCAAGBQJR6VGnAAoJEO00zqvie6q83kYP/jGNGIC3wM4O9d5mutvp3abl\r
94 arGzPewrLlVN9LWq31xQRusUasKf6GDCn7vfddiMYd7eZfgMAA+Sn9xbQ662gdHn\r
95 0wdQW+Vs1x2WntAxaQ+ZfWxE3d5OKn2Hb/4GjXjZaUg9XppA9V0984fsIhdPaWDb\r
96 6PbRXtJoC8VLt+yUxvcjywy2CUWLo/xU7FOtV4kZEGxm+zv9kSDj+RliH//jFJ5C\r
97 x/HelLow9lO7of8fwU9JwaUsb4zDpy8b1R6iq0Lz4y2PRNb/9LR1S9dHo6h/42Po\r
98 xivQF+cENpHmdDBrKy/t3017pWb3Df4ZfD03QbnOUSe+jyqncp1AN/FmKZqFaAj2\r
99 g4haRVfrtMf6iAlKeqGAxD5lhwDW2Zd32jhLOw6o3+VgL6Iy0lb431T3A8G49026\r
100 W1r1bSkGjFY36gfiH/5YV7XsY7Arj3F0DUQfDPRLMufFJ7wVhsc8B5vpKMu9Jhea\r
101 g/lLQ7l/AgzzGX4tsftgJwTJhK/cxzBZZxX6B8s3eW2mCd4YGJGPrngez2uxGy1a\r
102 9VZog56pvkJPfblDbKV9CuQqsDeptGPB0rr5ReyW0CQPf0161oUIoThwO1k7ztQd\r
103 luYChXia6Au5d8GePGmLPtbD+RSJ5aYycJTb5Fhn1GnPSOl8k9Gq+Q45glmZgdwD\r
104 Qg3VrV1bEyJO+BUNUoGT\r
105 =ifDO\r
106 -----END PGP SIGNATURE-----\r
107 --=-=-=--\r