Re: automatic database upgrades (was: Re: [PATCH 0/7] cli: notmuch new improvements)
authorJani Nikula <jani@nikula.org>
Sat, 25 Jan 2014 19:29:55 +0000 (21:29 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:21 +0000 (09:59 -0800)
cb/0be5a31625cc531bc33b2be7140ce97bb464f2 [new file with mode: 0644]

diff --git a/cb/0be5a31625cc531bc33b2be7140ce97bb464f2 b/cb/0be5a31625cc531bc33b2be7140ce97bb464f2
new file mode 100644 (file)
index 0000000..9eebe28
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1737D431FBD\r
+       for <notmuch@notmuchmail.org>; Sat, 25 Jan 2014 11:30:10 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id c7tJwPqavHrW for <notmuch@notmuchmail.org>;\r
+       Sat, 25 Jan 2014 11:30:02 -0800 (PST)\r
+Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com\r
+ [74.125.83.49])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ B96A2431FBC   for <notmuch@notmuchmail.org>; Sat, 25 Jan 2014 11:30:01 -0800\r
+ (PST)\r
+Received: by mail-ee0-f49.google.com with SMTP id d17so1537184eek.36\r
+       for <notmuch@notmuchmail.org>; Sat, 25 Jan 2014 11:29:59 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=pPFraViFsUwwWOT6hCXpyq2Q9PaZrpwNTTnF6ygQT6Y=;\r
+       b=WJx/8lwkOqY6PO5RLZiFlLWD553oD9P4SdgcjykE4HGgDUajF9UwtR51nj9+3Tqvdy\r
+       uJhf4kyJvYVCJQ3C2qAc47v65C7JSfBgC4wYFNM3w1XdgEavhvzBNrXO1VT/z/TINua8\r
+       HWD6khefdsOGo/dxiPFc/ulGHwWpOwUSAq4LLu/1j1R4gefwW1M5bBxKtpIReizu+7z+\r
+       bJuFA+rF3Dgv6uVpHxGCBbP/BnWZ7rLk9fUiW2wKFUHQcNej4CWb6nFifNzTI/gn6tJ6\r
+       TNJS2YkiclCU582FWKCwmNcUE855YlZDNxQEtKY5gRVgKIQmwpv6XYyYihQ6I1AoCyE/\r
+       D7dA==\r
+X-Gm-Message-State:\r
+ ALoCoQkvBe/2vbySLFDycfm4USRlJNlX1R3Fdv5lRxSdWOF21BWlrCdLe37z958E/QD2hoZoxAhZ\r
+X-Received: by 10.15.33.193 with SMTP id c41mr7656578eev.79.1390678198047;\r
+       Sat, 25 Jan 2014 11:29:58 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91]) by mx.google.com with ESMTPSA id\r
+       o13sm19398898eex.19.2014.01.25.11.29.56 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 25 Jan 2014 11:29:57 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: automatic database upgrades (was: Re: [PATCH 0/7] cli: notmuch\r
+       new improvements)\r
+In-Reply-To: <87fvoc9dd7.fsf@qmul.ac.uk>\r
+References: <cover.1390163335.git.jani@nikula.org> <87ppnga21o.fsf@qmul.ac.uk>\r
+       <87lhy4f6pr.fsf@nikula.org> <87fvoc9dd7.fsf@qmul.ac.uk>\r
+User-Agent: Notmuch/0.17+44~ge3b4cd9 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 25 Jan 2014 21:29:55 +0200\r
+Message-ID: <87d2jfg8r0.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Sat, 25 Jan 2014 19:30:10 -0000\r
+\r
+On Sat, 25 Jan 2014, Mark Walters <markwalters1009@gmail.com> wrote:\r
+> What about a config option? Something like\r
+> database_auto_upgrade=true/false? I wouldn't have a strong preference\r
+> which was the default (though I would choose "false" in my own\r
+> config). I guess we would need a command line --upgrade to allow people\r
+> with database_auto_upgrade=false to do force/allow the upgrade.\r
+\r
+I just recently read [1] again, I think it's a good one.\r
+\r
+It makes me ask the question, why should we ask the user to make that\r
+decision? The decision of what to do with the config option, or even\r
+whether to upgrade the database or not. Basically the decision is made\r
+when the user decides to upgrade notmuch. Once the user has upgraded\r
+notmuch his choices are to upgrade the database or downgrade notmuch.\r
+\r
+The user would probably just like to get on with the mail reading, which\r
+is probably also just means to an end!\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+[1] http://www.joelonsoftware.com/uibook/chapters/fog0000000059.html\r
+\r