From 2f0bc3f4705722d20c2b2b97bf20a772cde0fb81 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sat, 24 Mar 2012 14:04:32 +0200 Subject: [PATCH] Re: Questions from a user new to notmuch --- f6/b546fd2d9500490a6093815542bccb2c158d8b | 102 ++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 f6/b546fd2d9500490a6093815542bccb2c158d8b diff --git a/f6/b546fd2d9500490a6093815542bccb2c158d8b b/f6/b546fd2d9500490a6093815542bccb2c158d8b new file mode 100644 index 000000000..4b75f06d3 --- /dev/null +++ b/f6/b546fd2d9500490a6093815542bccb2c158d8b @@ -0,0 +1,102 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id CD014431FAF + for ; Sat, 24 Mar 2012 05:04:39 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 8H4ytb6DhmPc for ; + Sat, 24 Mar 2012 05:04:39 -0700 (PDT) +Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com + [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 100FC431FAE + for ; Sat, 24 Mar 2012 05:04:38 -0700 (PDT) +Received: by lbok6 with SMTP id k6so3270657lbo.26 + for ; Sat, 24 Mar 2012 05:04:37 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:in-reply-to:references:user-agent:date + :message-id:mime-version:content-type:x-gm-message-state; + bh=1NvgL3fWRrFn0ZN+xMh5uSKzaj0eWNr/a8w9N6EqvMY=; + b=fywOJwnoJoH0i016a4+PTT5R7AujzKwMw6QEzxCbSTIIgvbKVltBRvIEiN1aP8Kosu + ozmcQ/Z5id/sl7ucw9otSpgxbI84bxmUgMGNYIb6q59heEs/zn+e5lKkVgr8r7t08bqn + +hYrwJPYLwiJP7cJEdt1yoEwSsjdL+gWPpk4X2v0UjiIC9wwBzR+8mr8KIbVMnzi5zmM + AG1VumlN+qe8jc45IyKCkHdDWuX7+8kgsgNCzDZR82FDliQFgD5XyYeD8XdUjjYxHjAb + d4NahEUHfRjm6ifjRTtEvXPvVYLDgQufDfLZsoocjNBcJULyp1q8F1nTSaQqw2exWB1V + r2XQ== +Received: by 10.112.103.74 with SMTP id fu10mr948141lbb.1.1332590677171; + Sat, 24 Mar 2012 05:04:37 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi. + [84.248.80.253]) + by mx.google.com with ESMTPS id py12sm10871262lab.4.2012.03.24.05.04.34 + (version=SSLv3 cipher=OTHER); Sat, 24 Mar 2012 05:04:35 -0700 (PDT) +From: Jani Nikula +To: Austin Clements , Kyle Sexton +Subject: Re: Questions from a user new to notmuch +In-Reply-To: <20120322223907.GO2670@mit.edu> +References: <20120322223907.GO2670@mit.edu> +User-Agent: Notmuch/0.11.1+295~g780f284 (http://notmuchmail.org) Emacs/23.3.1 + (i686-pc-linux-gnu) +Date: Sat, 24 Mar 2012 14:04:32 +0200 +Message-ID: <87bonmqk6n.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Gm-Message-State: + ALoCoQmT3LTg/Dyfa18ygYlrIn+PFRwkf+kKQ7i/a5mw/Ptip+sNtvIZ/6k2JovjBEtqWCpONr6O +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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, 24 Mar 2012 12:04:39 -0000 + +On Thu, 22 Mar 2012 18:39:07 -0400, Austin Clements wrote: +> Quoth Kyle Sexton on Mar 21 at 10:21 pm: +> > 1. Using offlineimap to store mail into a Maildir, is it safe to move an +> > already indexed message to a different folder from some other client? +> +> Yes, mostly. You'll have to run notmuch new for notmuch to detect the +> move, but it will detect it as a move. I say "mostly" because until +> you run notmuch new, notmuch won't find the message file, so it won't +> be able to display the message and won't be able to synchronize any +> tag changes to its maildir flags. + +If maildir.synchronize_flags is enabled (it is by default) you should +take extra care to have the mail store and notmuch database in sync (by +running "notmuch new") before changing tags that are synced with maildir +flags. Otherwise, the following scenario is possible: + +1) Rename file with id:message-id in another client. Note that maildir + flag changes are also renames. + +2) "notmuch tag -unread id:message-id" will remove unread tag from the + message, but won't find the message file, and is thus unable to sync + the tag change to the S maildir flag. The syncing just silently + fails. + +3) The next "notmuch new" syncs maildir flags to tags, adding unread tag + back to id:message-id, losing your tag change. + +This could be considered a bug in notmuch, but not an easy one to fix +race free. See http://notmuchmail.org/special-tags/ and your +.notmuch-config for details about maildir flag synchronization. + + +BR, +Jani. -- 2.26.2