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 4ECF6431FB6 for ; Fri, 29 Jun 2012 00:00:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.098 X-Spam-Level: X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 4EiGc2CaktAq for ; Fri, 29 Jun 2012 00:00:20 -0700 (PDT) Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 86FA6431FAF for ; Fri, 29 Jun 2012 00:00:20 -0700 (PDT) Received: from smtp.qmul.ac.uk ([138.37.6.40]) by mail2.qmul.ac.uk with esmtp (Exim 4.71) (envelope-from ) id 1SkVBb-0001ML-7X; Fri, 29 Jun 2012 08:00:16 +0100 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223] helo=localhost) by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1SkVBa-0003jE-Sf; Fri, 29 Jun 2012 08:00:11 +0100 From: Mark Walters To: Ethan Subject: Re: [RFC PATCH 00/14] modular mail stores based on URIs In-Reply-To: References: <1340656899-5644-1-git-send-email-ethan@betacantrips.com> <87bok3m70p.fsf@qmul.ac.uk> User-Agent: Notmuch/0.13.2+51~gf947b9b (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Fri, 29 Jun 2012 08:00:05 +0100 Message-ID: <87a9zmr4ay.fsf@qmul.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender-Host-Address: 94.192.233.223 X-QM-SPAM-Info: Sender has good ham record. :) X-QM-Body-MD5: fdc0a9b93538119189081300f67c49fe (of first 20000 bytes) X-SpamAssassin-Score: -1.8 X-SpamAssassin-SpamBar: - X-SpamAssassin-Report: The QM spam filters have analysed this message to determine if it is spam. We require at least 5.0 points to mark a message as spam. This message scored -1.8 points. Summary of the scoring: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [138.37.6.40 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (markwalters1009[at]gmail.com) * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay * domain * 0.5 AWL AWL: From: address is in the auto white-list X-QM-Scan-Virus: ClamAV says the message is clean 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: Fri, 29 Jun 2012 07:00:21 -0000 Hi On Fri, 29 Jun 2012, Ethan wrote: > On Thu, Jun 28, 2012 at 6:00 PM, Mark Walters wrote: > >> >> Just a quick question: does this update the database with >> maildir://files URIs instead of just filenames? In other words is it >> safe to try out on actual mailstores? >> > > It doesn't change any of the existing filenames or do anything like a > database "upgrade". If you run notmuch new, it should add a URI-based > filename to each message, but I don't think it should remove old filenames, > so I would expect it to be fine. But I didn't expect anyone to try it on > their actual mail database. The breakage I observed was when trying to reply to a message after reverting to master: on the command line I got Error opening /database_path/maildir:///full_path_of_file: No such file or directory When doing notmuch search output=files I see both possibilities. Surprisingly notmuch new does not seem to remove these entries. >> (I used it on a trial system but when I reverted to master some things >> seemed to stop working) > > Sorry for breaking it :) It was no problem for me: it was just a test corpus of 10,000 message that I use for testing. In case anyone else has problems the following solved it for me: 1) dump the tags 2) delete the .notmuch subdirectory of the mail store 3) run notmuch new 4) restore the tags Best wishes Mark