1 Return-Path: <Vladimir.Marek@Oracle.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 13E18431FBD
\r
6 for <notmuch@notmuchmail.org>; Sun, 21 Jul 2013 14:47:52 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001]
\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 JZC1QeKYpWIq for <notmuch@notmuchmail.org>;
\r
17 Sun, 21 Jul 2013 14:47:44 -0700 (PDT)
\r
18 Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81])
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id F246E431FB6
\r
22 for <notmuch@notmuchmail.org>; Sun, 21 Jul 2013 14:47:43 -0700 (PDT)
\r
23 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
\r
24 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with
\r
25 ESMTP id r6LLldmq018940
\r
26 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
\r
27 Sun, 21 Jul 2013 21:47:39 GMT
\r
28 Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])
\r
29 by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
\r
31 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
\r
32 Sun, 21 Jul 2013 21:47:38 GMT
\r
33 Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54])
\r
34 by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
\r
35 r6LLlbmO007792; Sun, 21 Jul 2013 21:47:38 GMT
\r
36 Received: from virt.cz.oracle.com (/10.163.102.127)
\r
37 by default (Oracle Beehive Gateway v4.0)
\r
38 with ESMTP ; Sun, 21 Jul 2013 14:47:37 -0700
\r
39 Date: Sun, 21 Jul 2013 23:47:35 +0200
\r
40 From: Vladimir Marek <Vladimir.Marek@Oracle.COM>
\r
41 To: Mark Walters <markwalters1009@gmail.com>
\r
42 Subject: Re: Re: [PATCH 0/3] Introduce the add command
\r
43 Message-ID: <20130721214735.GC4405@virt.cz.oracle.com>
\r
44 References: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>
\r
45 <87wqom8v2x.fsf@servo.finestructure.net>
\r
46 <87r4es8h0p.fsf@qmul.ac.uk>
\r
48 Content-Type: text/plain; charset=utf-8
\r
49 Content-Disposition: inline
\r
50 In-Reply-To: <87r4es8h0p.fsf@qmul.ac.uk>
\r
51 User-Agent: Mutt/ (2012-12-30)
\r
52 X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
\r
53 Cc: notmuch@notmuchmail.org
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Sun, 21 Jul 2013 21:47:52 -0000
\r
68 > > On Sat, Jul 13 2013, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:
\r
69 > >> The recent introduction of insert inspired me to finally add a feature I've
\r
70 > >> been wanting: a command to index a specific file in the maildir. My usecase
\r
71 > >> for this is that I have an inotify-based script that watches for new mail
\r
72 > >> and calls notmuch new when new mail shows up. Running notmuch new in this
\r
73 > >> situation is overkill, since I know exactly what's changed. A faster command
\r
74 > >> that just adds a single file reduces contention on the database lock.
\r
76 > >> This series introduces a new command, "notmuch add", which indexes a file
\r
77 > >> that already exists in the maildir. It is implemented in notmuch-insert.c
\r
78 > >> because it uses the basic infrastructure introduced for the insert command.
\r
80 > >> Missing man page for now - wanted to get the code out first for review.
\r
82 > > Hey, Adam. This feature seems fine, but it seems similar enought to
\r
83 > > insert that I wonder if they can just be unified. What if insert just
\r
84 > > took an optional path argument as well, e.g.:
\r
86 > > notmuch insert [options] [ +<tag>|-<tag> ... ] [-- /path/to/file]
\r
88 > > If the path is not in the db, it would insert it the same as if it had
\r
89 > > come in via stdin. If the path *is* in the db, it could just do the add
\r
90 > > part that you're looking for. That seems like it might be a more
\r
91 > > intuitive UI experience to me.
\r
93 > I sort of agree but wonder if it would be more natural under "new" than
\r
94 > "insert". so notmuch new /path/to/file just adds that file (provided it
\r
95 > is in the database; perhaps a relative path?) This would also be
\r
96 > extensible to do a whole mail sub-directory which seems like it might
\r
97 > also be a useful feature. (I am definitely not saying that this needs to
\r
98 > be implemented now!)
\r
100 That would be mostly welcome addition indeed ...
\r