[PATCH 5/8] lib: iterator API for message properties
[notmuch-archives.git] / 3d / 7658a953bad360975e76e31f8d38a44ce69c66
1 Return-Path: <xuwang762@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 arlo.cworth.org (Postfix) with ESMTP id 549666DE0AF8\r
6  for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 11:44:51 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.578\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.578 tagged_above=-999 required=5\r
12  tests=[AWL=-0.008, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13  DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25,\r
14  FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
15  RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id YGiHrc38r-Mf for <notmuch@notmuchmail.org>;\r
19  Sat, 13 Jun 2015 11:44:49 -0700 (PDT)\r
20 Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com\r
21  [209.85.214.179])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id CADCC6DE0948\r
23  for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 11:44:48 -0700 (PDT)\r
24 Received: by obpc2 with SMTP id c2so12543789obp.3\r
25  for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 11:44:47 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27  h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
28  :content-type; bh=OEQg22vt6NJ2PGjDCdm3AQUzzJZUp11FQBdT3Goykjo=;\r
29  b=NpyzqIXt9qv68Zf0x91BRT54Zgvr02iZTlHQPeomX14g18zLAMrKR/ks6wjrnUkFCd\r
30  DsyU+bhNU94QMGgeN9761DhwOXx8WywxM7ncyQ5pRAsFuORzFND0esPOy7L/B/GT229W\r
31  lhu31tC4W0vCyaCU0b54UeVM1Xg+jlpR6LF9ohzTOqMY9SmAfwVEzTcmY6gu3Go1DvGx\r
32  8Wp5XR+O5CbvXcCBzgZMFK7DgECpu7FZm2QMdW0ZnzWjqElLQWLoufP13qIhYf+yXUGc\r
33  GB0LFMpzR5tRcNyjTTmp0qwK3N8tl/eoDNUb80kBF35WgggrI3lzsWSOn/4MzT+c33f3\r
34  mJcA==\r
35 MIME-Version: 1.0\r
36 X-Received: by 10.182.87.36 with SMTP id u4mr17309084obz.50.1434221086671;\r
37  Sat, 13 Jun 2015 11:44:46 -0700 (PDT)\r
38 Received: by 10.182.241.167 with HTTP; Sat, 13 Jun 2015 11:44:46 -0700 (PDT)\r
39 In-Reply-To:\r
40  <CAJhTkNhcUjM0ut+8JQX1ifVhPL4D+kLzoHz_nTRxQrmFJT4scA@mail.gmail.com>\r
41 References:\r
42  <CAJhTkNjHDmii67Gn77szoeriEBEwMJ=4NMMQ0qUjX3-jppQk1w@mail.gmail.com>\r
43  <87eglije4y.fsf@nikula.org>\r
44  <CAJhTkNhcUjM0ut+8JQX1ifVhPL4D+kLzoHz_nTRxQrmFJT4scA@mail.gmail.com>\r
45 Date: Sat, 13 Jun 2015 14:44:46 -0400\r
46 Message-ID:\r
47  <CAJhTkNiXv+Zo8_=n2LYbvvFLv+_0=DYx6uuBDQHxLtXuR33M0Q@mail.gmail.com>\r
48 Subject: Re: Understanding the "replied" tag\r
49 From: Xu Wang <xuwang762@gmail.com>\r
50 To: notmuch@notmuchmail.org\r
51 Content-Type: text/plain; charset=UTF-8\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.18\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56  <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Sat, 13 Jun 2015 18:44:51 -0000\r
65 \r
66 On Thu, Jun 11, 2015 at 2:39 PM, Xu Wang <xuwang762@gmail.com> wrote:\r
67 > On Thu, Jun 11, 2015 at 2:25 PM, Jani Nikula <jani@nikula.org> wrote:\r
68 >> On Thu, 11 Jun 2015, Xu Wang <xuwang762@gmail.com> wrote:\r
69 >>> Dear all,\r
70 >>>\r
71 >>> First, I am extremely excited to be a part of this list now. notmuch\r
72 >>> has really helped me. Thank you go all individuals working to improve\r
73 >>> it and to help others to know how to use it.\r
74 >>>\r
75 >>> I would really like to know if a message has been replied to (e.g.\r
76 >>> using a certain message id). It seems that all I need to do is check\r
77 >>> for the "replied" tag. But often this tag is not there, even when\r
78 >>> there has been a reply (I have confirmed this through the thread\r
79 >>> display and checking the message that replied to the message to make\r
80 >>> sure it indeed has header "replied-to:<MSG-ID>").\r
81 >>>\r
82 >>> I have looked in mutt, and also I see many situations where there is\r
83 >>> no 'r' flag, especially for emails sent from me.\r
84 >>>\r
85 >>> The following returns true:\r
86 >>> notmuch config get maildir.synchronize_flags\r
87 >>>\r
88 >>> So at least both are giving same answer, but I'm not sure why not\r
89 >>> saying "replied" thread is correct.\r
90 >>>\r
91 >>> What is incorrect for my way of thinking about "replied"? Do I\r
92 >>> misunderstand what it is supposed to do or am I not updating the flags\r
93 >>> correctly?\r
94 >>\r
95 >> Notmuch deals with the "replied" tag in two ways.\r
96 >>\r
97 >> First, the tag is synchronized with the maildir flag R, both ways. This\r
98 >> is the "R" in the filename after ":2,". See [1] for details.\r
99 >>\r
100 >> Second, the notmuch-emacs interface adds the "replied" tag upon sending\r
101 >> the reply. You can customize this tag, but note that only "replied" gets\r
102 >> synchronized to maildir flags.\r
103 >>\r
104 >> If you use a MUA that doesn't either add the R flag or call notmuch to\r
105 >> add the "replied" tag, you'll lose this bit of information.\r
106 >>\r
107 >> You might also find [2] relevant.\r
108 >>\r
109 >> BR,\r
110 >> Jani.\r
111 >>\r
112 >>\r
113 >> [1] http://cr.yp.to/proto/maildir.html\r
114 >> [2] http://notmuchmail.org/special-tags/\r
115 >\r
116 > Thank you so much, Jani. This is very informative to me. I think I\r
117 > have a good understanding now of what is going on.\r
118 >\r
119 > My question then is this:\r
120 >\r
121 > I trust notmuch more than mutt, because notmuch is aware of threads\r
122 > and all mail boxes. Also note that I often use gmail web interface to\r
123 > reply emails.\r
124 >\r
125 > Am I correct in the following: if notmuch wanted to, when I run\r
126 > "notmuch new", notmuch has the information that it could\r
127 > (theoretically) update and correct all of the "replied" tags. Is that\r
128 > correct? If so, my next question is: why doesn't it do that?\r
129 >\r
130 > I think I'm close to getting notmuch intution on its goals.\r
131 >\r
132 > Kind regards,\r
133 \r
134 The following message is in response to Suvayu (I am now finally\r
135 subscribed to the list so I will have no future problem):\r
136 \r
137 Thank you. The problem in the end is that I would like 'notmuch new'\r
138 to not only schronize the 'reply' tag but to master handle the reply\r
139 tag because notmuch knows which messages have been replied to (because\r
140 it is aware of threads).\r
141 \r
142 Kind regards,\r
143 \r
144 Xu\r