From 3650858c29209628208166eeea3ac2806512f446 Mon Sep 17 00:00:00 2001 From: Vladimir Marek Date: Sat, 11 Aug 2012 11:46:35 +0200 Subject: [PATCH] Re: Alternative (raw) message store (i.e. instead of maildir) --- 22/d3a5c63d7841b042ae6228b44630f6ffa1c3bc | 94 +++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 22/d3a5c63d7841b042ae6228b44630f6ffa1c3bc diff --git a/22/d3a5c63d7841b042ae6228b44630f6ffa1c3bc b/22/d3a5c63d7841b042ae6228b44630f6ffa1c3bc new file mode 100644 index 000000000..b1d32b2c0 --- /dev/null +++ b/22/d3a5c63d7841b042ae6228b44630f6ffa1c3bc @@ -0,0 +1,94 @@ +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 32BB2431FAF + for ; Sat, 11 Aug 2012 02:48:02 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -4.999 +X-Spam-Level: +X-Spam-Status: No, score=-4.999 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_HI=-5, UNPARSEABLE_RELAY=0.001] + 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 fJ3J+2vSSizv for ; + Sat, 11 Aug 2012 02:48:00 -0700 (PDT) +Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id F3975431FAE + for ; Sat, 11 Aug 2012 02:47:59 -0700 (PDT) +Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) + by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with + ESMTP id q7B9lugt011749 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); + Sat, 11 Aug 2012 09:47:56 GMT +Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) + by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id + q7B9lrpI005083 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); + Sat, 11 Aug 2012 09:47:54 GMT +Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) + by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id + q7B9lr6t019904; Sat, 11 Aug 2012 04:47:53 -0500 +Received: from pub.cz.oracle.com (/10.163.20.32) + by default (Oracle Beehive Gateway v4.0) + with ESMTP ; Sat, 11 Aug 2012 02:47:53 -0700 +Date: Sat, 11 Aug 2012 11:46:35 +0200 +From: Vladimir Marek +To: Ciprian Dorin Craciun +Subject: Re: Alternative (raw) message store (i.e. instead of maildir) +Message-ID: <20120811094635.GY28321@pub.cz.oracle.com> +Mail-Followup-To: Ciprian Dorin Craciun , + notmuch@notmuchmail.org +References: + +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf-8 +Content-Disposition: inline +In-Reply-To: + +User-Agent: Mutt/1.5.21 (2010-09-15) +X-Source-IP: ucsinet22.oracle.com [156.151.31.94] +Cc: notmuch@notmuchmail.org +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: Sat, 11 Aug 2012 09:48:02 -0000 + +Hi, + +I have objections against maildir too, but I tried to tackle it from +different perspective. Store the maildir in zip file and use fuse-zip to +manage it. It works sort of but it has two major disadvantages: + + - fuse zip stores all changes in memory until unmounted + - fuse zip (and libzip for that matter) creates new temporary file when + updating archive, which takes considerable time when the archive is + very big. + +Looking at the zip file format, it could be made so that all +modifications would result only in appending new data to it (deleting is +writing new directory index not containing the deleted file). + +I even made proof of concept libzip modification. + +Of course this solution would have some disadvantages too, but for me +the advantages would win. At the moment I'm not sure if I want to +continue working on that. Maybe if there would be more interested guys +... + +Cheers +-- + Vlad -- 2.26.2