Re: Hi all
[notmuch-archives.git] / 90 / 01dc0672ce7a216c87530492794733ff07cd17
1 Return-Path: <m.walters@qmul.ac.uk>\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 1048E431FBF\r
6         for <notmuch@notmuchmail.org>; Sun, 21 Jul 2013 01:16:37 -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: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 mUjaQBPl36bc for <notmuch@notmuchmail.org>;\r
17         Sun, 21 Jul 2013 01:16:32 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\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 0227F431FB6\r
22         for <notmuch@notmuchmail.org>; Sun, 21 Jul 2013 01:16:31 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1V0ooa-0000IX-1m; Sun, 21 Jul 2013 09:16:26 +0100\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1V0ooZ-0007bE-Ox; Sun, 21 Jul 2013 09:16:23 +0100\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
33         Adam Wolfe Gordon <awg+notmuch@xvx.ca>, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 0/3] Introduce the add command\r
35 In-Reply-To: <87wqom8v2x.fsf@servo.finestructure.net>\r
36 References: <1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca>\r
37         <87wqom8v2x.fsf@servo.finestructure.net>\r
38 User-Agent: Notmuch/0.15.2+192~g8222af3 (http://notmuchmail.org) Emacs/23.4.1\r
39         (i486-pc-linux-gnu)\r
40 Date: Sun, 21 Jul 2013 09:16:22 +0100\r
41 Message-ID: <87r4es8h0p.fsf@qmul.ac.uk>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain; charset=us-ascii\r
44 X-Sender-Host-Address: 93.97.24.31\r
45 X-QM-SPAM-Info: Sender has good ham record.  :)\r
46 X-QM-Body-MD5: 46f18ea278537fb909ae84db46e1b727 (of first 20000 bytes)\r
47 X-SpamAssassin-Score: 0.0\r
48 X-SpamAssassin-SpamBar: /\r
49 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
50         determine if it is\r
51         spam. We require at least 5.0 points to mark a message as spam.\r
52         This message scored 0.0 points. Summary of the scoring: \r
53         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
54         provider *      (markwalters1009[at]gmail.com)\r
55         *  0.0 AWL AWL: From: address is in the auto white-list\r
56 X-QM-Scan-Virus: ClamAV says the message is clean\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, 21 Jul 2013 08:16:37 -0000\r
70 \r
71 \r
72 \r
73 > On Sat, Jul 13 2013, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:\r
74 >> The recent introduction of insert inspired me to finally add a feature I've\r
75 >> been wanting: a command to index a specific file in the maildir. My usecase\r
76 >> for this is that I have an inotify-based script that watches for new mail\r
77 >> and calls notmuch new when new mail shows up. Running notmuch new in this\r
78 >> situation is overkill, since I know exactly what's changed. A faster command\r
79 >> that just adds a single file reduces contention on the database lock.\r
80 >>\r
81 >> This series introduces a new command, "notmuch add", which indexes a file\r
82 >> that already exists in the maildir. It is implemented in notmuch-insert.c\r
83 >> because it uses the basic infrastructure introduced for the insert command.\r
84 >>\r
85 >> Missing man page for now - wanted to get the code out first for review.\r
86 >\r
87 > Hey, Adam.  This feature seems fine, but it seems similar enought to\r
88 > insert that I wonder if they can just be unified.  What if insert just\r
89 > took an optional path argument as well, e.g.:\r
90 >\r
91 >   notmuch insert [options] [ +<tag>|-<tag> ... ] [-- /path/to/file]\r
92 >\r
93 > If the path is not in the db, it would insert it the same as if it had\r
94 > come in via stdin.  If the path *is* in the db, it could just do the add\r
95 > part that you're looking for.  That seems like it might be a more\r
96 > intuitive UI experience to me.\r
97 \r
98 I sort of agree but wonder if it would be more natural under "new" than\r
99 "insert". so notmuch new /path/to/file just adds that file (provided it\r
100 is in the database; perhaps a relative path?) This would also be\r
101 extensible to do a whole mail sub-directory which seems like it might\r
102 also be a useful feature. (I am definitely not saying that this needs to\r
103 be implemented now!)\r
104 \r
105 Best wishes\r
106 \r
107 Mark\r
108 \r
109 \r
110 \r
111 \r
112 \r
113 >\r
114 > jamie.\r
115 > _______________________________________________\r
116 > notmuch mailing list\r
117 > notmuch@notmuchmail.org\r
118 > http://notmuchmail.org/mailman/listinfo/notmuch\r