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 F151C4196F3 for ; Fri, 26 Mar 2010 15:09:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001] autolearn=ham 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 ZN6Dpp9II+NM for ; Fri, 26 Mar 2010 15:09:02 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 217914196F2 for ; Fri, 26 Mar 2010 15:09:02 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 7EED619F35C6; Fri, 26 Mar 2010 23:09:01 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 4vvGd0bCZdaw; Fri, 26 Mar 2010 23:09:00 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 38E9A19F3432; Fri, 26 Mar 2010 23:08:59 +0100 (CET) Received: from steelpick.2x.cz (r5da224.net.upc.cz [86.49.116.224]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id D826815C062; Fri, 26 Mar 2010 23:08:59 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1NvHi6-0006xx-V1; Fri, 26 Mar 2010 23:08:59 +0100 From: Michal Sojka To: Stewart Smith , notmuch@notmuchmail.org In-Reply-To: <874ok68g1z.fsf@willster.local.flamingspork.com> References: <1268926780-20045-1-git-send-email-sojkam1@fel.cvut.cz> <874ok68g1z.fsf@willster.local.flamingspork.com> Date: Fri, 26 Mar 2010 23:08:58 +0100 Message-ID: <87sk7m91mt.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Mailstore abstraction & maildir synchronization 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, 26 Mar 2010 22:09:03 -0000 On Wed, 24 Mar 2010, Stewart Smith wrote: > On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka wrote: > > - Only file-based storage is suported. Notmuch access the files > > directly, and not via the mailstore interface. > > It'll be great when this is fixed... should be trivial to add a git > backend then. Yes, it seems to be quite trivial. I'll probably look at this tomorrow. > > (i have in no way been looking at tags in git though... doesn't really > interest me and git aint a database) My aim is only to store tags in git for the purpose of synchronization. I'm not interested in searching by tags. The idea is that for every message there will be an additional blob containging tags - one tag per line. > > > - (maildir) Viewing/storing of attachments of unread messages doesn't > > work. The reason is that when you view the message it its unread tag > > is removed which leads to rename of the file, but Emacs still uses > > the original name to access the attachment. > > What about migrating from a maildir that's turned into notmuch back to > this maildir backend? What will be authoritive: maildir or notmuch > database? Maildir is authoritative, but only for tags corresponding to maildir flags. Other tags are never touched by this code. See also the updated commit message in "[PATCH v2 3/4] Add maildir-based mailstore". If you want to sync your maildirs with the databse the following should work (not tested): notmuch dump > dump cat <> ~/.notmuch-config [mailstore] type=maildir EOF notmuch restore dump --Michal