From: Jesse Luehrs Date: Wed, 12 Mar 2014 14:42:27 +0000 (+2000) Subject: flag synchronization moves messages from new to cur when not necessary X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15f34b0439663517787c6c53873894f7d3925428;p=notmuch-archives.git flag synchronization moves messages from new to cur when not necessary --- diff --git a/52/5fb04b6ee40e602b7fc861a083d4e98f69748a b/52/5fb04b6ee40e602b7fc861a083d4e98f69748a new file mode 100644 index 000000000..83be03044 --- /dev/null +++ b/52/5fb04b6ee40e602b7fc861a083d4e98f69748a @@ -0,0 +1,71 @@ +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 126DA431FAE + for ; Wed, 12 Mar 2014 07:49:25 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.1 +X-Spam-Level: +X-Spam-Status: No, score=0.1 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1] 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 EKnXOMjwDQEp for ; + Wed, 12 Mar 2014 07:49:17 -0700 (PDT) +X-Greylist: delayed 505 seconds by postgrey-1.32 at olra; + Wed, 12 Mar 2014 07:49:17 PDT +Received: from mail.tozt.net (tozt.net [162.216.19.228]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id BE598431FC0 + for ; Wed, 12 Mar 2014 07:49:17 -0700 (PDT) +Received: from localhost (pool-96-238-16-106.prvdri.fios.verizon.net + [96.238.16.106]) by mail.tozt.net (Postfix) with ESMTPSA id 95BC6A702 + for ; Wed, 12 Mar 2014 10:40:50 -0400 (EDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tozt.net; s=mail; + t=1394635250; bh=xdF5QbXlpHEE2kjxZv3K6YeJZ+YP2OCVUHZghGAyQk4=; + h=Date:From:To:Subject; + b=FjmRNyEsiUSCEAB+kYN6ZB8W1lS/KfAOtr0fJB9S+s6KZLq1q4WMFda9aEMzV3pVn + 0UZKDc0LdH+2DPtzjzmDYUpGPr3Q3GtDTTimkjQVG5JLAtuD+VC1S/Wrrbd/RXa0Br + OA8zCn6DJSdoCIBJdIoXq36JJoE5YjDT34gWp+II= +Date: Wed, 12 Mar 2014 10:42:27 -0400 +From: Jesse Luehrs +To: notmuch@notmuchmail.org +Subject: flag synchronization moves messages from new to cur when not + necessary +Message-ID: <20140312144227.GA27010@xtahua> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +User-Agent: Mutt/1.5.22 (2013-10-16) +X-Mailman-Approved-At: Wed, 12 Mar 2014 08:45:58 -0700 +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: Wed, 12 Mar 2014 14:49:25 -0000 + +If a message in new has a trailing ":2," in the filename, notmuch will +move it to cur whenever tags are modified, even if nothing has changed +with tags that are supposed to be synchronized. While it's true that +having messages in new with extra info attached violates the maildir +spec, it does happen with some clients (I ran into it with offlineimap, +and filed a bug https://github.com/OfflineIMAP/offlineimap/issues/80 +here, but not sure if or when it will be addressed). + +On IRC, it was suggested that it wouldn't really harm anything to +consider messages with a trailing ":2," (with no other flags) in new as +being equivalent to the info not existing at all. Would this be +a possible solution? + +-doy