Enabling and disabling maildir.synchronize_flags
authordm-list-email-notmuch <dm-list-email-notmuch@scs.stanford.edu>
Wed, 1 Jul 2015 19:58:36 +0000 (12:58 +1700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:08 +0000 (14:49 -0700)
5d/998b1c8801374686f5387c4621ca2b9f0b90bc [new file with mode: 0644]

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