[feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 1f / fb03062dedd27b468e7cc66a17f8134afdae4e
1 Return-Path: <bremner@tethera.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 arlo.cworth.org (Postfix) with ESMTP id 51F4C6DE176A\r
6  for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 19:52:45 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.111\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.111 tagged_above=-999 required=5 tests=[AWL=0.111]\r
12  autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id rUrVp6WUJCq2 for <notmuch@notmuchmail.org>;\r
16  Sat, 26 Sep 2015 19:52:43 -0700 (PDT)\r
17 Received: from gitolite.debian.net (gitolite.debian.net [87.98.215.224])\r
18  by arlo.cworth.org (Postfix) with ESMTPS id 878D66DE0924\r
19  for <notmuch@notmuchmail.org>; Sat, 26 Sep 2015 19:52:43 -0700 (PDT)\r
20 Received: from remotemail by gitolite.debian.net with local (Exim 4.80)\r
21  (envelope-from <bremner@tethera.net>)\r
22  id 1Zg24H-0005bv-LT; Sun, 27 Sep 2015 02:52:01 +0000\r
23 Received: (nullmailer pid 31133 invoked by uid 1000); Sun, 27 Sep 2015\r
24  02:50:26 -0000\r
25 From: David Bremner <david@tethera.net>\r
26 To: notmuch@notmuchmail.org\r
27 Subject: [Patch v3 1/4] cli/count: simplify and document return value of\r
28  print_count\r
29 Date: Sat, 26 Sep 2015 23:50:10 -0300\r
30 Message-Id: <1443322213-31075-2-git-send-email-david@tethera.net>\r
31 X-Mailer: git-send-email 2.5.3\r
32 In-Reply-To: <1443322213-31075-1-git-send-email-david@tethera.net>\r
33 References: <1443322213-31075-1-git-send-email-david@tethera.net>\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.18\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38  <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
40  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
45  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Sun, 27 Sep 2015 02:52:45 -0000\r
47 \r
48 Essentially a cosmetic change.\r
49 ---\r
50  notmuch-count.c | 3 ++-\r
51  1 file changed, 2 insertions(+), 1 deletion(-)\r
52 \r
53 diff --git a/notmuch-count.c b/notmuch-count.c\r
54 index 09613e6..be3e236 100644\r
55 --- a/notmuch-count.c\r
56 +++ b/notmuch-count.c\r
57 @@ -67,6 +67,7 @@ count_files (notmuch_query_t *query)\r
58      return count;\r
59  }\r
60  \r
61 +/* return 0 on success, -1 on failure */\r
62  static int\r
63  print_count (notmuch_database_t *notmuch, const char *query_str,\r
64              const char **exclude_tags, size_t exclude_tags_length, int output, int print_lastmod)\r
65 @@ -81,7 +82,7 @@ print_count (notmuch_database_t *notmuch, const char *query_str,\r
66      query = notmuch_query_create (notmuch, query_str);\r
67      if (query == NULL) {\r
68         fprintf (stderr, "Out of memory\n");\r
69 -       return 1;\r
70 +       return -1;\r
71      }\r
72  \r
73      for (i = 0; i < exclude_tags_length; i++)\r
74 -- \r
75 2.5.3\r
76 \r