From: dm-list-email-notmuch Date: Wed, 1 Jul 2015 19:58:36 +0000 (+1700) Subject: Enabling and disabling maildir.synchronize_flags X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2d10d240a74dc07e675d2a69dc14a899196cf8b;p=notmuch-archives.git Enabling and disabling maildir.synchronize_flags --- diff --git a/5d/998b1c8801374686f5387c4621ca2b9f0b90bc b/5d/998b1c8801374686f5387c4621ca2b9f0b90bc new file mode 100644 index 000000000..c721554c2 --- /dev/null +++ b/5d/998b1c8801374686f5387c4621ca2b9f0b90bc @@ -0,0 +1,79 @@ +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 EDAE26DE09FB + for ; Wed, 1 Jul 2015 13:11:20 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -1.978 +X-Spam-Level: +X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[AWL=0.873, + RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55, 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 7QMBgpTq7GXr for ; + Wed, 1 Jul 2015 13:11:18 -0700 (PDT) +X-Greylist: delayed 759 seconds by postgrey-1.35 at arlo; + Wed, 01 Jul 2015 13:11:18 PDT +Received: from market.scs.stanford.edu (market.scs.stanford.edu [171.66.3.10]) + by arlo.cworth.org (Postfix) with ESMTPS id 6E65F6DE0924 + for ; Wed, 1 Jul 2015 13:11:18 -0700 (PDT) +Received: from market.scs.stanford.edu (localhost.scs.stanford.edu + [127.0.0.1]) by market.scs.stanford.edu (8.14.7/8.14.7) with ESMTP id + t61JwbqZ015059 for ; Wed, 1 Jul 2015 12:58:37 -0700 + (PDT) +Received: (from dm@localhost) + by market.scs.stanford.edu (8.14.7/8.14.7/Submit) id t61Jwa6v031095; + Wed, 1 Jul 2015 12:58:36 -0700 (PDT) +X-Authentication-Warning: market.scs.stanford.edu: dm set sender to + return-89jkrcvjdst4i9qi4ujszs8hcs@ta.scs.stanford.edu using -f +From: dm-list-email-notmuch@scs.stanford.edu +To: notmuch@notmuchmail.org +Subject: Enabling and disabling maildir.synchronize_flags +Reply-To: David Mazieres expires 2015-09-29 PDT + +Date: Wed, 01 Jul 2015 12:58:36 -0700 +Message-ID: <87r3orbqfn.fsf@ta.scs.stanford.edu> +MIME-Version: 1.0 +Content-Type: text/plain +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: Wed, 01 Jul 2015 20:11:21 -0000 + +Sorry if this question is answered somewhere, but I'm wondering: What +is the best way to enable and disable maildir.synchronize_flags? + +It seems that disabling it should simply be safe. But re-enabling, one +risks losing tags, as the next notmuch new will cause old maildir flags +to override the xapian database. So that suggests something like: + + notmuch dump > backup + notmuch config set maildir.synchronize_flags false + # Do I need to run notmuch new here? + notmuch restore < backup + +Is that safe? The man page suggests one additionally need to run +notmuch new before running notmuch restore. All of this is pretty slow. +Is there a more efficient way? + +A one or two sentence clarification in the notmuch-config man page might +be helpful to people contemplating playing with this switch. The +default is on, to I suspect it costs a lot of performance. I've been +afraid to turn it off for fear that I won't be able to undo this +cleanly. + +Thanks, +David