Re: [notmuch] Mailstore abstraction & maildir synchronization
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 26 Mar 2010 22:08:58 +0000 (23:08 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:26 +0000 (09:36 -0800)
4c/4f218ffdb126f16a04b2bac54c25c7466217f2 [new file with mode: 0644]

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