1 Return-Path: <jan@ryngle.com>
\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 467E1431FD2
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:30:29 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id HoaV+ljooZO9 for <notmuch@notmuchmail.org>;
\r
11 Wed, 25 Nov 2009 15:30:27 -0800 (PST)
\r
12 Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id AE905431FC0
\r
15 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:30:26 -0800 (PST)
\r
16 Received: by mail-ew0-f213.google.com with SMTP id 5so257211ewy.30
\r
17 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:30:26 -0800 (PST)
\r
18 Received: by 10.213.107.16 with SMTP id z16mr3251432ebo.47.1259191826352;
\r
19 Wed, 25 Nov 2009 15:30:26 -0800 (PST)
\r
20 Received: from x61s.janakj ([213.192.30.141])
\r
21 by mx.google.com with ESMTPS id 28sm334054eyg.36.2009.11.25.15.30.23
\r
22 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
23 Wed, 25 Nov 2009 15:30:24 -0800 (PST)
\r
24 Received: by x61s.janakj (Postfix, from userid 1000)
\r
25 id 994C5440655; Thu, 26 Nov 2009 00:30:16 +0100 (CET)
\r
26 From: Jan Janak <jan@ryngle.com>
\r
27 To: notmuch@notmuchmail.org
\r
28 Date: Thu, 26 Nov 2009 00:30:12 +0100
\r
29 Message-Id: <1259191816-1982-1-git-send-email-jan@ryngle.com>
\r
30 X-Mailer: git-send-email 1.6.3.3
\r
31 In-Reply-To: <1259100630-13673-1-git-send-email-jan@ryngle.com>
\r
32 References: <1259100630-13673-1-git-send-email-jan@ryngle.com>
\r
33 Subject: [notmuch] [PATCH 1/5] notmuch-new: Remove tag_add_inbox_unread in
\r
34 favor of a generic solution.
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.12
\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: Wed, 25 Nov 2009 23:30:29 -0000
\r
49 Instead of adding 'inbox' and 'unread' tags directly in the code of
\r
50 'notmuch-new', we can specify a list of tags to be added to newly
\r
51 created messages with a configuration file option or a command line
\r
52 option. That's more flexible, it allows the user to select which tags
\r
55 Signed-off-by: Jan Janak <jan@ryngle.com>
\r
57 notmuch-new.c | 8 --------
\r
58 1 files changed, 0 insertions(+), 8 deletions(-)
\r
60 diff --git a/notmuch-new.c b/notmuch-new.c
\r
61 index e32b92a..9970407 100644
\r
64 @@ -41,13 +41,6 @@ handle_sigint (unused (int sig))
\r
68 -tag_inbox_and_unread (notmuch_message_t *message)
\r
70 - notmuch_message_add_tag (message, "inbox");
\r
71 - notmuch_message_add_tag (message, "unread");
\r
75 add_files_print_progress (add_files_state_t *state)
\r
77 struct timeval tv_now;
\r
78 @@ -198,7 +191,6 @@ add_files_recursive (notmuch_database_t *notmuch,
\r
80 case NOTMUCH_STATUS_SUCCESS:
\r
81 state->added_messages++;
\r
82 - tag_inbox_and_unread (message);
\r
84 /* Non-fatal issues (go on to next file) */
\r
85 case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:
\r