Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5d / d6bafa051ca16af3e278735d788e032e8317fe
1 Return-Path: <sojkam1@fel.cvut.cz>\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 BE530431FC3\r
6         for <notmuch@notmuchmail.org>; Mon,  1 Mar 2010 09:19:07 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.001 tagged_above=-999 required=5\r
12         tests=[AWL=-0.816, BAYES_40=-0.185] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id gl2bcCT+wars for <notmuch@notmuchmail.org>;\r
16         Mon,  1 Mar 2010 09:19:07 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id C0A0E431FBD\r
19         for <notmuch@notmuchmail.org>; Mon,  1 Mar 2010 09:19:06 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id EDE4B19F33BC;\r
22         Mon,  1 Mar 2010 18:18:57 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id yNfhRYBOTVyJ; Mon,  1 Mar 2010 18:18:56 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id A2F7B19F33B8;\r
30         Mon,  1 Mar 2010 18:18:56 +0100 (CET)\r
31 Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 7A349FA003;\r
34         Mon,  1 Mar 2010 18:18:56 +0100 (CET)\r
35 Received: from wsh by steelpick.localdomain with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1Nm9Gi-0005Ax-CD; Mon, 01 Mar 2010 18:18:56 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Ben Gamari <bgamari@gmail.com>, notmuch <notmuch@notmuchmail.org>\r
40 In-Reply-To: <1267459947-sup-6640@ben-laptop>\r
41 References: <87pr57jvkz.fsf@SSpaeth.de> <87wry2wl7p.fsf@yoom.home.cworth.org>\r
42         <87ljecmnbd.fsf@steelpick.localdomain> <1267459947-sup-6640@ben-laptop>\r
43 Date: Mon, 01 Mar 2010 18:18:55 +0100\r
44 Message-ID: <87bpf82c5c.fsf@steelpick.localdomain>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Subject: Re: [notmuch] Introducing notmuchsync\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Mon, 01 Mar 2010 17:19:07 -0000\r
61 \r
62 On Mon, 01 Mar 2010 11:27:07 -0500, Ben Gamari <bgamari@gmail.com> wrote:\r
63 > > 2. get the list of new mails which need to be indexed\r
64 > >    (current notmuch does recursive file traversal, for git-based store\r
65 > >    it will be something like system("git diff-tree --name-status ...")\r
66 > >\r
67 > Is this really necessary? Another option (which I believe has been\r
68 > mentioned here in the past) is to simply pass notmuch new a list of\r
69 > message "paths" to add (although I'm not sure if many mail delivery\r
70 > programs give you that sort of information). \r
71 \r
72 This could also be possible, but now, you say "notmuch new" and notmuch\r
73 itself figure out what to index. If passing notmuch a list on files to\r
74 index will be the only supported way, it might be hard for new users to\r
75 start with notmuch. A nice thing on notmuch is that it can be used\r
76 almost without any configuration.\r
77 \r
78 > How do you propose that the backends keep track of what mail has been\r
79 > indexed?\r
80 \r
81 For example by using Xapian metadata:\r
82 notmuch->xapian_db->set_metadata ("git-head", sha1);\r
83 \r
84 > > Now, if we have this, it would be very easy to add support for\r
85 > > Maildir-based mail-store. The implementation of the first two methods\r
86 > > would be the same as what is currently in notmuch and the third method\r
87 > > would rename files in mailstore if certain tags (such as unread) are\r
88 > > added or removed. In case of rename, notmuch database would be\r
89 > > immediately updated to reflect the change.\r
90 > > \r
91 > The interface here seems a little vague. How would the backend notify\r
92 > notmuch that the filename has changed?\r
93 \r
94 notmuch new\r
95 \r
96 The idea is that tags changed by notmuch are stored immediately (and\r
97 database is updated accordingly), whereas when the mail store is changed\r
98 by an external tool, you must explicitly ask notmuch to notice that.\r
99 \r
100 > > So to summarize, I think there should be an abstract layer for\r
101 > > handling different types of mail-store. I can see at least three\r
102 > > possible implementations of this abstract interface: 1) immutable\r
103 > > mail-store (as currently implemented in notmuch) 2) Maildir-based\r
104 > > mail-store for limited synchronization with other Maildir tools and \r
105 > > 3) git-based mail-store for full synchronization.\r
106\r
107 > Don't forget mbox. It seems like it would be pretty trivial to\r
108 > implement (although I'm not sure what performance would look like).\r
109 \r
110 I personally do not use mboxes, so I'm not interested in them.\r
111 \r
112 > > I've already started working on this, but I'm still in the state where I\r
113 > > mainly study how notmuch works in order not to break its current\r
114 > > functionality.\r
115\r
116 > With all of this infrastructure, it seems like it wouldn't be too\r
117 > difficult to support messages from multiple backends in a single index.\r
118 > Not sure if people would be interested enough to warrant the added\r
119 > complexity though.\r
120 \r
121 I'm currently not interested in such a functionality, but we can add it\r
122 later if there is a need.\r
123 \r
124 \r
125 Bye\r
126 Michal\r