[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 32 / f3439baf9959975f631be8704c60ba6bc03d4f
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 B99C44196F2\r
6         for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 04:48:03 -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.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] 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 2MekgnZmxPBG for <notmuch@notmuchmail.org>;\r
16         Mon, 12 Apr 2010 04:48:02 -0700 (PDT)\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 C76CD431FC1\r
19         for <notmuch@notmuchmail.org>; Mon, 12 Apr 2010 04:48:02 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 0697019F3671;\r
22         Mon, 12 Apr 2010 13:48:02 +0200 (CEST)\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 AYKfr2aO3RKq; Mon, 12 Apr 2010 13:48:00 +0200 (CEST)\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 C144719F366E;\r
30         Mon, 12 Apr 2010 13:48:00 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (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 7180E15C062;\r
34         Mon, 12 Apr 2010 13:48:00 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1O1I7T-0004ZU-SA; Mon, 12 Apr 2010 13:47:59 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: martin f krafft <madduck@madduck.net>\r
40 Subject: Re: [PATCH] Mailstore abstraction v4 - part 2 (maildir\r
41         synchronization)\r
42 In-Reply-To: <20100412081805.GA25971@lapse.rw.madduck.net>\r
43 References: <1270739592-30280-1-git-send-email-sojkam1@fel.cvut.cz>\r
44         <20100412081805.GA25971@lapse.rw.madduck.net>\r
45 Date: Mon, 12 Apr 2010 13:47:59 +0200\r
46 Message-ID: <87hbngc2og.fsf@steelpick.2x.cz>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 Cc: notmuch@notmuchmail.org\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 12 Apr 2010 11:48:03 -0000\r
63 \r
64 On Mon, 12 Apr 2010, martin f krafft wrote:\r
65 > also sprach Michal Sojka <sojkam1@fel.cvut.cz> [2010.04.08.1713 +0200]:\r
66 > >    I'm working on the solution - if the mailstore cannot open the\r
67 > >    message with the name passed, it tries different names with\r
68 > >    different maildir flags.\r
69\r
70 > Wouldn't it be better to postpone synchronisation of the tags until\r
71 > after emacs is done with the message?\r
72 \r
73 Theoretically, it would be possible, but if, for some reason, the\r
74 synchronization step would not happen, then the tags in the database and\r
75 in the mailstore will be inconsistent and next run of notmuch new would\r
76 reset the tags according to the state in mailstore.\r
77 \r
78 The current implementation takes tags in mailstore as authoritative and\r
79 ensures that tags in mailstore are always updated before tags in the\r
80 database.\r
81 \r
82 > I understand this might be hard to make work with mailstore\r
83 > abstraction. Wouldn't it make more sense to have emacs call 'notmuch\r
84 > cat', which returns the entire message, removes the unread tag,\r
85 > changes the filename, and updates the database?\r
86 \r
87 I do not like the fact that cat would do two things - cat and tag. And\r
88 then, 'unread' tag is not the only one which can be changed.\r
89  \r
90 > The message returned by cat would be stored in a temporary file for\r
91 > use by the client (emacs). And if the message was needed again, you\r
92 > could just search for it again.\r
93\r
94 > I dislike the idea of heuristically probing a Maildir for files.\r
95 \r
96 Well, I do not plan to use wired heuristics. At the end there will be\r
97 readdir() to traverse the cur/ directory to find the file with the same\r
98 part before flags. Since the S flag will probably be the most frequent\r
99 change, I may add one single test for added S flag before trying more\r
100 expensive readdir().\r
101 \r
102 -Michal\r