Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 549666DE0AF8 for ; Sat, 13 Jun 2015 11:44:51 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.578 X-Spam-Level: X-Spam-Status: No, score=-0.578 tagged_above=-999 required=5 tests=[AWL=-0.008, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YGiHrc38r-Mf for ; Sat, 13 Jun 2015 11:44:49 -0700 (PDT) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by arlo.cworth.org (Postfix) with ESMTPS id CADCC6DE0948 for ; Sat, 13 Jun 2015 11:44:48 -0700 (PDT) Received: by obpc2 with SMTP id c2so12543789obp.3 for ; Sat, 13 Jun 2015 11:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OEQg22vt6NJ2PGjDCdm3AQUzzJZUp11FQBdT3Goykjo=; b=NpyzqIXt9qv68Zf0x91BRT54Zgvr02iZTlHQPeomX14g18zLAMrKR/ks6wjrnUkFCd DsyU+bhNU94QMGgeN9761DhwOXx8WywxM7ncyQ5pRAsFuORzFND0esPOy7L/B/GT229W lhu31tC4W0vCyaCU0b54UeVM1Xg+jlpR6LF9ohzTOqMY9SmAfwVEzTcmY6gu3Go1DvGx 8Wp5XR+O5CbvXcCBzgZMFK7DgECpu7FZm2QMdW0ZnzWjqElLQWLoufP13qIhYf+yXUGc GB0LFMpzR5tRcNyjTTmp0qwK3N8tl/eoDNUb80kBF35WgggrI3lzsWSOn/4MzT+c33f3 mJcA== MIME-Version: 1.0 X-Received: by 10.182.87.36 with SMTP id u4mr17309084obz.50.1434221086671; Sat, 13 Jun 2015 11:44:46 -0700 (PDT) Received: by 10.182.241.167 with HTTP; Sat, 13 Jun 2015 11:44:46 -0700 (PDT) In-Reply-To: References: <87eglije4y.fsf@nikula.org> Date: Sat, 13 Jun 2015 14:44:46 -0400 Message-ID: Subject: Re: Understanding the "replied" tag From: Xu Wang To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2015 18:44:51 -0000 On Thu, Jun 11, 2015 at 2:39 PM, Xu Wang wrote: > On Thu, Jun 11, 2015 at 2:25 PM, Jani Nikula wrote: >> On Thu, 11 Jun 2015, Xu Wang wrote: >>> Dear all, >>> >>> First, I am extremely excited to be a part of this list now. notmuch >>> has really helped me. Thank you go all individuals working to improve >>> it and to help others to know how to use it. >>> >>> I would really like to know if a message has been replied to (e.g. >>> using a certain message id). It seems that all I need to do is check >>> for the "replied" tag. But often this tag is not there, even when >>> there has been a reply (I have confirmed this through the thread >>> display and checking the message that replied to the message to make >>> sure it indeed has header "replied-to:"). >>> >>> I have looked in mutt, and also I see many situations where there is >>> no 'r' flag, especially for emails sent from me. >>> >>> The following returns true: >>> notmuch config get maildir.synchronize_flags >>> >>> So at least both are giving same answer, but I'm not sure why not >>> saying "replied" thread is correct. >>> >>> What is incorrect for my way of thinking about "replied"? Do I >>> misunderstand what it is supposed to do or am I not updating the flags >>> correctly? >> >> Notmuch deals with the "replied" tag in two ways. >> >> First, the tag is synchronized with the maildir flag R, both ways. This >> is the "R" in the filename after ":2,". See [1] for details. >> >> Second, the notmuch-emacs interface adds the "replied" tag upon sending >> the reply. You can customize this tag, but note that only "replied" gets >> synchronized to maildir flags. >> >> If you use a MUA that doesn't either add the R flag or call notmuch to >> add the "replied" tag, you'll lose this bit of information. >> >> You might also find [2] relevant. >> >> BR, >> Jani. >> >> >> [1] http://cr.yp.to/proto/maildir.html >> [2] http://notmuchmail.org/special-tags/ > > Thank you so much, Jani. This is very informative to me. I think I > have a good understanding now of what is going on. > > My question then is this: > > I trust notmuch more than mutt, because notmuch is aware of threads > and all mail boxes. Also note that I often use gmail web interface to > reply emails. > > Am I correct in the following: if notmuch wanted to, when I run > "notmuch new", notmuch has the information that it could > (theoretically) update and correct all of the "replied" tags. Is that > correct? If so, my next question is: why doesn't it do that? > > I think I'm close to getting notmuch intution on its goals. > > Kind regards, The following message is in response to Suvayu (I am now finally subscribed to the list so I will have no future problem): Thank you. The problem in the end is that I would like 'notmuch new' to not only schronize the 'reply' tag but to master handle the reply tag because notmuch knows which messages have been replied to (because it is aware of threads). Kind regards, Xu