[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 65 / 4e82677b8da6624465d98550007f98ff09a771
1 Return-Path: <lrilling@gmail.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 36D63429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 24 Jun 2011 13:34:15 -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: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] 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 A0raX5-RHarv for <notmuch@notmuchmail.org>;\r
17         Fri, 24 Jun 2011 13:34:13 -0700 (PDT)\r
18 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
19         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 0BC11431FD0\r
22         for <notmuch@notmuchmail.org>; Fri, 24 Jun 2011 13:34:12 -0700 (PDT)\r
23 Received: by wyh22 with SMTP id 22so271548wyh.26\r
24         for <notmuch@notmuchmail.org>; Fri, 24 Jun 2011 13:34:11 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:sender:date:from:to:cc:subject:message-id\r
27         :references:mime-version:content-type:content-disposition\r
28         :in-reply-to:user-agent;\r
29         bh=6Ks9O1sa0WZFVTmbKkmGfJIqJi84MkEjI9xP8M1Vvrk=;\r
30         b=IAFQH5ac3K6GSb0mypBIhe+YpCsSHVKdyK/0oVw/BFZre5UEWMIP0EwNzzD8WFTsOh\r
31         ky3YjvWR4Pf7qK9Ofg7BA1VgPa0n+SI49R/ebl8fVrOYpgOKgXyTQOtr0LAGAVuMKBmv\r
32         V68n+criNMXw58XYRy0qDZMhpJfcy7dTuT7rk=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=sender:date:from:to:cc:subject:message-id:references:mime-version\r
35         :content-type:content-disposition:in-reply-to:user-agent;\r
36         b=iuQpfQWTIJXzPzoK2HhCvG0W8mnmmX+SeOcnkkEvExg7hpqQdtfUvx/SKoM2bf0qQT\r
37         2qPKEsdKqeeC/2GpSGWPH0bR3b6jNxDyyAAVIP8zl4b2CT/xt3txV8B71diDkI/BcIMh\r
38         6lI3qq315iOeuobXaiz4Y8G1Nyu8zxhacbnWM=\r
39 Received: by 10.216.62.3 with SMTP id x3mr43152wec.77.1308947651571;\r
40         Fri, 24 Jun 2011 13:34:11 -0700 (PDT)\r
41 Received: from localdomain ([78.222.14.116])\r
42         by mx.google.com with ESMTPS id fe4sm1458510wbb.28.2011.06.24.13.34.10\r
43         (version=SSLv3 cipher=OTHER); Fri, 24 Jun 2011 13:34:10 -0700 (PDT)\r
44 Sender: Louis Rilling <lrilling@gmail.com>\r
45 Date: Fri, 24 Jun 2011 22:34:03 +0200\r
46 From: Louis Rilling <l.rilling@av7.net>\r
47 To: Austin Clements <amdragon@mit.edu>\r
48 Subject: Re: [RFC][PATCH] tags_to_maildir_flags: Add option to not move\r
49         messages from "new/" to "cur/"\r
50 Message-ID: <20110624203403.GA2523@localdomain>\r
51 References: <1308843366-6159-1-git-send-email-l.rilling@av7.net>\r
52         <BANLkTin7R2oRu_1DSjzHSVupELru8R_tZQ@mail.gmail.com>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain; charset=us-ascii\r
55 Content-Disposition: inline\r
56 In-Reply-To: <BANLkTin7R2oRu_1DSjzHSVupELru8R_tZQ@mail.gmail.com>\r
57 User-Agent: Mutt/1.5.20 (2009-06-14)\r
58 Cc: notmuch@notmuchmail.org\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Fri, 24 Jun 2011 20:34:15 -0000\r
72 \r
73 On 24/06/11 11:19 -0400, Austin Clements wrote:\r
74 > Welcome to notmuch!\r
75 \r
76 Thanks!\r
77 \r
78\r
79 > From your description, I assume you're using both notmuch and another\r
80 > MUA simultaneously.  I'm betting that MUA is mutt (though please\r
81 > correct me if I'm wrong).\r
82 \r
83 Correct :)\r
84 \r
85\r
86 > Unfortunately, mutt's interpretation of maildir doesn't agree with the\r
87 > rest of the world.  I don't know of any other MUA that exposes the\r
88 > distinction between mail in the "new" directory and mail in the "old"\r
89 > directory (at least Dovecot, Evolution, Gnus, Kmail, and of course\r
90 > notmuch don't).  In other MUA's, any mail in the "new" directory is\r
91 > immediately moved to "cur" and "new" mail is simply anything without\r
92 > the seen flag.  mutt, on the other hand, only considers mail in the\r
93 > "new" directory to be "new".\r
94\r
95 > While the maildir specification is a little vague, it strongly implies\r
96 > two things that mutt's approach violates: mail should never move from\r
97 > "cur" to "new", and only mail in "cur" can have flags [1].  While it\r
98 > never states it outright, the philosophy is that "new" is simply a\r
99 > staging ground for incoming mail, not a user-visible state (and\r
100 > certainly not user-manipulable).\r
101 \r
102 Thanks for the detailed explanation.\r
103 \r
104\r
105 > Because of this, I don't think notmuch is the right place to change\r
106 > this (certainly not in a way that would also violate the spec).  Could\r
107 > you elaborate a bit on your workflow?  (In particular, are you using\r
108 > mutt's distinction between new and old?)  Maybe we can find an\r
109 > alternate solution.\r
110 \r
111 Yes my quick "mood-dependent" filtering just acts on new (as shown by mutt)\r
112 mails, while old mails are kept until either 1) they can be read (yes, this\r
113 happens!), or 2) they can be archived (because they might be interesting in\r
114 some future), or 3) they can be deleted (eg. became too old to be worth\r
115 reading them).\r
116 \r
117 However, I don't think that I need the violating behavior of mutt: new mails\r
118 are just new, not replied to/read, or anything else. The only rare cases in\r
119 which I may set back the new flag are when I mistakenly start reading an email\r
120 (wrong keystroke most of the time). Even in that case, I don't care if the mail\r
121 becomes old (ie moves to cur/).\r
122 \r
123 Maybe the alternate solution could consist in simply not renaming emails having\r
124 no flags to be changed (Currently notmuch_message_tags_to_maildir_flags()\r
125 unconditionally moves messages from new/ to cur/). This would even lead to a\r
126 shorter patch :) Do you think that this would be acceptable?\r
127 \r
128 Thanks,\r
129 \r
130 Louis\r
131 \r
132\r
133 > [1] There's a bug open about the second problem (thanks to ccxCZ for\r
134 > finding this):\r
135 >     http://dev.mutt.org/trac/ticket/2476\r
136 > Of course, fixing that implies addressing the first problem, too.\r
137\r
138 > On Thu, Jun 23, 2011 at 11:36 AM, Louis Rilling <l.rilling@av7.net> wrote:\r
139 > > notmuch_message_tags_to_maildir_flags() moves messages from maildir directory\r
140 > > "new/" to maildir directory "cur/", which makes messages lose their "new" status\r
141 > > in the MUA. However some users want to keep this "new" status after, for\r
142 > > instance, an auto-tagging of new messages.\r
143 > >\r
144 > > This patch introduces notmuch_message_tags_to_maildir_flags_preserve(), which\r
145 > > does the same job as notmuch_message_tags_to_maildir_flags() except moving\r
146 > > from "maildir "new/" to maildir "cur/". A new option "preserve_new" is\r
147 > > introduced in "[maildir]" section of .notmuch-config, so that users can\r
148 > > configure whether commands "notmuch tag" and "notmuch restore" preserve the\r
149 > > "new" status or not.\r
150 > >\r
151 > > Signed-off-by: Louis Rilling <l.rilling@av7.net>\r
152 > > ---\r
153 > > Hi,\r
154 > >\r
155 > > I'm in the process of using notmuch, but the issue "addressed" by this patch\r
156 > > would make me change my habits a bit too fast. I use the "new" status for\r
157 > > quickly checking (often without reading) which emails I just received,\r
158 > > implementing some kind of context/mood/daytime-dependent quick filtering. I'd\r
159 > > also like to run a pre-tagging script automatically when synchronizing\r
160 > > periodically (and automatically too) my mailboxes. But the current behavior of\r
161 > > "notmuch tag" makes me lose my quick filtering ability.\r
162 > >\r
163 > > This patch is mostly written for discussion. It is certainly not polished (API,\r
164 > > ABI, bindings) and not tested at all. In particular, I know that there are some\r
165 > > plans to customize flags synchronization, but I don't know how the library API\r
166 > > could/should be impacted.\r
167 > >\r
168 > > Thanks for your comments!\r
169 > >\r
170 > > Louis\r