Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / bd / 5c713697dd51049a063855464fb5aed8ec664c
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 9F045431FC4\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Jan 2014 12:32:52 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: -0.7\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
13         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id c1dXMymk8KdL for <notmuch@notmuchmail.org>;\r
17         Sun, 19 Jan 2014 12:32:47 -0800 (PST)\r
18 Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com\r
19         [209.85.215.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 7EAC6431FC2\r
22         for <notmuch@notmuchmail.org>; Sun, 19 Jan 2014 12:32:44 -0800 (PST)\r
23 Received: by mail-ea0-f174.google.com with SMTP id b10so2716890eae.33\r
24         for <notmuch@notmuchmail.org>; Sun, 19 Jan 2014 12:32:42 -0800 (PST)\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=1e100.net; s=20130820;\r
27         h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
28         :references:in-reply-to:references;\r
29         bh=JdCwtWb9BtRHR0JMifCjyJMlDcP0IRZm4q8ezUjIeic=;\r
30         b=bWAOQQF7FbQkh/oFq5P2sRXMWHL/mc+bAW/BaZbY9H73xKyWgN2H9XnUSc2I+gMIpL\r
31         ygfAE4jGR2LgmzSuW0RyQXGN/unlsBsu7CSUjmzhLwKf3YySTLUTF7HxKgypLW9tG33q\r
32         acgJyZZFjpew7Lpl8c4n+QbVUKHGIykTlxmEqP3eMqBp4WT1W+wN9Ns3fGaFg5FI7YJ8\r
33         W37zspM8hpZEhex0xDBkydI986UnbvjevSbkplgzUHBA4/OyA7qCSCVT6FuhutLm13Cp\r
34         YXQBKTHLIo2+0JnXiS3Oc4lwOrLwqvKTyp0j5St8lO3XKua40bjK/mHsZvhxzNkPTXOn\r
35         Tf2Q==\r
36 X-Gm-Message-State:\r
37  ALoCoQlsQoYa/CEus3T8vq+c07c7zvpS9M9khArrAf8leNktwyj+kmlhwrBtARWPlRNED8iB5vw6\r
38 X-Received: by 10.15.109.196 with SMTP id cf44mr14038166eeb.12.1390163562043; \r
39         Sun, 19 Jan 2014 12:32:42 -0800 (PST)\r
40 Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
41         [88.195.111.91])\r
42         by mx.google.com with ESMTPSA id x2sm43846026eeo.8.2014.01.19.12.32.40\r
43         for <multiple recipients>\r
44         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
45         Sun, 19 Jan 2014 12:32:41 -0800 (PST)\r
46 From: Jani Nikula <jani@nikula.org>\r
47 To: notmuch@notmuchmail.org\r
48 Subject: [PATCH 2/7] cli: only check the ignore list if needed\r
49 Date: Sun, 19 Jan 2014 22:32:23 +0200\r
50 Message-Id:\r
51  <6fedb8aeeffb6c78aeb4a837267ad3c0d2dddee9.1390163335.git.jani@nikula.org>\r
52 X-Mailer: git-send-email 1.8.5.2\r
53 In-Reply-To: <cover.1390163335.git.jani@nikula.org>\r
54 References: <cover.1390163335.git.jani@nikula.org>\r
55 In-Reply-To: <cover.1390163335.git.jani@nikula.org>\r
56 References: <cover.1390163335.git.jani@nikula.org>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Sun, 19 Jan 2014 20:32:52 -0000\r
70 \r
71 Premature optimization is the root of all evil, but this is simple\r
72 enough.\r
73 ---\r
74  notmuch-new.c | 2 +-\r
75  1 file changed, 1 insertion(+), 1 deletion(-)\r
76 \r
77 diff --git a/notmuch-new.c b/notmuch-new.c\r
78 index 1dd8fc9..7f3b3b0 100644\r
79 --- a/notmuch-new.c\r
80 +++ b/notmuch-new.c\r
81 @@ -728,7 +728,7 @@ count_files (const char *path, int *count, add_files_state_t *state)\r
82             strcmp (entry->d_name, ".notmuch") == 0 ||\r
83             _entry_in_ignore_list (entry->d_name, state))\r
84         {\r
85 -           if (_entry_in_ignore_list (entry->d_name, state) && state->debug)\r
86 +           if (state->debug && _entry_in_ignore_list (entry->d_name, state))\r
87                 printf ("(D) count_files: explicitly ignoring %s/%s\n",\r
88                         path,\r
89                         entry->d_name);\r
90 -- \r
91 1.8.5.2\r
92 \r