[PATCH 6/9] CLI: refactor dumping of tags.
[notmuch-archives.git] / ca / 1dd3a29f0684bfcdec3ad303709f8856511ed0
1 Return-Path: <awg@lagos.xvx.ca>\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 8E1FE431FCB\r
6         for <notmuch@notmuchmail.org>; Sat, 13 Jul 2013 17:55:32 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 JF36e9XmlJE1 for <notmuch@notmuchmail.org>;\r
16         Sat, 13 Jul 2013 17:55:25 -0700 (PDT)\r
17 Received: from smtp-out-01.shaw.ca (smtp-out-01.shaw.ca [64.59.136.137])\r
18         by olra.theworths.org (Postfix) with ESMTP id F131B431FBF\r
19         for <notmuch@notmuchmail.org>; Sat, 13 Jul 2013 17:55:24 -0700 (PDT)\r
20 X-Cloudmark-SP-Filtered: true\r
21 X-Cloudmark-SP-Result: v=1.1 cv=GLqYwptGXHjY6tPk5kWRtHXJM/YfZPTWiIs1znw4zms=\r
22         c=1 sm=1\r
23         a=A16mN0G_02cA:10 a=BLceEmwcHowA:10 a=gumk1giGF0obp6xRQyl7Yg==:17\r
24         a=sDWRSQzO3c7R0vj9Q-8A:9 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117\r
25 Received: from unknown (HELO lagos.xvx.ca) ([68.150.39.45])\r
26         by smtp-out-01.shaw.ca with ESMTP; 13 Jul 2013 18:45:54 -0600\r
27 Received: by lagos.xvx.ca (Postfix, from userid 1000)\r
28         id 0EF058009323; Sat, 13 Jul 2013 18:45:54 -0600 (MDT)\r
29 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
30 To: notmuch@notmuchmail.org\r
31 Subject: [PATCH 0/3] Introduce the add command\r
32 Date: Sat, 13 Jul 2013 18:45:43 -0600\r
33 Message-Id: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>\r
34 X-Mailer: git-send-email 1.7.9.5\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.13\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39         <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Sun, 14 Jul 2013 00:55:32 -0000\r
48 \r
49 Hi everyone,\r
50 \r
51 The recent introduction of insert inspired me to finally add a feature I've\r
52 been wanting: a command to index a specific file in the maildir. My usecase\r
53 for this is that I have an inotify-based script that watches for new mail\r
54 and calls notmuch new when new mail shows up. Running notmuch new in this\r
55 situation is overkill, since I know exactly what's changed. A faster command\r
56 that just adds a single file reduces contention on the database lock.\r
57 \r
58 This series introduces a new command, "notmuch add", which indexes a file\r
59 that already exists in the maildir. It is implemented in notmuch-insert.c\r
60 because it uses the basic infrastructure introduced for the insert command.\r
61 \r
62 Missing man page for now - wanted to get the code out first for review.\r
63 \r
64 -- Adam\r
65 \r
66 Adam Wolfe Gordon (3):\r
67   cli: Return an error code from add_message_to_database\r
68   cli: Introduce the add command\r
69   test: Add simple tests for the add command\r
70 \r
71  notmuch-client.h |    3 +++\r
72  notmuch-insert.c |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++---\r
73  notmuch.c        |    2 ++\r
74  test/insert      |   35 +++++++++++++++++++++++++++++++++\r
75  4 files changed, 94 insertions(+), 3 deletions(-)\r
76 \r
77 -- \r
78 1.7.9.5\r
79 \r