--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 3A3B9431FBD\r
+ for <notmuch@notmuchmail.org>; Wed, 5 Mar 2014 07:40:51 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ 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 DYK2xDksSwzB for <notmuch@notmuchmail.org>;\r
+ Wed, 5 Mar 2014 07:40:42 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id 70E05431FAE\r
+ for <notmuch@notmuchmail.org>; Wed, 5 Mar 2014 07:40:42 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 1E20C100245;\r
+ Wed, 5 Mar 2014 17:40:34 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, Jani Nikula <jani@nikula.org>,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 00/13] literal folder: prefix, new path: prefix\r
+In-Reply-To: <87d2i0vhbi.fsf@zancas.localnet>\r
+References: <cover.1393105055.git.jani@nikula.org>\r
+ <87mwh8mn58.fsf@zancas.localnet> <87siqxiwlc.fsf@nikula.org>\r
+ <8738ix4qeg.fsf@tethera.net> <m2d2i13up9.fsf@guru.guru-group.fi>\r
+ <87fvmwvpbm.fsf@zancas.localnet>\r
+ <m2lhwoeqov.fsf@guru.guru-group.fi>\r
+ <87d2i0vhbi.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Wed, 05 Mar 2014 17:40:33 +0200\r
+Message-ID: <m24n3c1wni.fsf@guru.guru-group.fi>\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: Wed, 05 Mar 2014 15:40:51 -0000\r
+\r
+On Wed, Mar 05 2014, David Bremner <david@tethera.net> wrote:\r
+\r
+> Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+>>\r
+>> (IIRC openssl sha256 is available at least in Mac OS X, probably in other\r
+>> BSD:s & Solaris too)\r
+>>\r
+>\r
+> OTOH sha256sum is in coreutils, so everywhere with a gnu userland has\r
+> it. Some might not have openssl (it's priority optional on Debian,\r
+> e.g.).\r
+\r
+Aaah these response times are a pleasure... :D\r
+\r
+cd $TEST_DIRECTORY/test-databases\r
+\r
+if hash sha256sum 2>/dev/null\r
+then\r
+ sha256sum --quiet --check ${dbtarball}.sha256 || error "checksum of database failed"\r
+else\r
+ # opportunistically try to run openssl sha256 in case sha256sum is not available\r
+ read sha256sum_exp filename < ${dbtarball}.sha256\r
+ sha256sum_act=`openssl sha256 "${dbtarball}" | sed 's/ .*//'`\r
+ test "$sha256sum_exp" = "$sha256sum_act" || error "checksum of database failed"\r
+fi\r
+cd - >& /dev/null\r
+\r
+\r
+>\r
+> d\r
+\r
+Tomi\r