Re: Hi all
[notmuch-archives.git] / 3d / 3106286ee7bafbf8e76247b25d1eb5fe816e3a
1 Return-Path: <sojkam1@fel.cvut.cz>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id C0D9B404965\r
6         for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 08:40:54 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.065\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.065 tagged_above=-999 required=5\r
12         tests=[AWL=-0.880, BAYES_40=-0.185] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 4eNDDZgQ+loJ for <notmuch@notmuchmail.org>;\r
16         Thu, 18 Mar 2010 08:40:54 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id DE6BA40495F\r
19         for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 08:40:53 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 478F619F340C\r
22         for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 16:40:53 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044) with ESMTP id Slg2MLhtIaxE for <notmuch@notmuchmail.org>;\r
27         Thu, 18 Mar 2010 16:40:51 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 0151219F33D7\r
30         for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 16:40:51 +0100 (CET)\r
31 Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id DA1CDFA003\r
34         for <notmuch@notmuchmail.org>; Thu, 18 Mar 2010 16:40:50 +0100 (CET)\r
35 Received: from wsh by steelpick.localdomain with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>) id 1NsHq6-0005Hd-CX\r
37         for notmuch@notmuchmail.org; Thu, 18 Mar 2010 16:40:50 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Date: Thu, 18 Mar 2010 16:39:36 +0100\r
41 Message-Id: <1268926780-20045-1-git-send-email-sojkam1@fel.cvut.cz>\r
42 X-Mailer: git-send-email 1.7.0\r
43 Subject: [notmuch] Mailstore abstraction & maildir synchronization\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Thu, 18 Mar 2010 15:40:55 -0000\r
57 \r
58 Hi all,\r
59 \r
60 I've finally found some time to implement the mailstore abstraction\r
61 was initially described in id:87ljecmnbd.fsf@steelpick.localdomain and\r
62 id:87eijqlz54.fsf@steelpick.localdomain.\r
63 \r
64 The idea is to allow notmuch operate on different types of mail\r
65 storage (e.g. mail in git repositories) and to store the tags in the\r
66 storage together with mails. The aim is the ability to synchronize\r
67 mails and tags between computers. The following patch series is the\r
68 first version which I'm able to use on daily basis so I'd like to get\r
69 some feedback.\r
70 \r
71 In the current form, the patch series implements two mail stores:\r
72 1. plain files (compatible with the current notmuch)\r
73 2. maildir (synchronizes certain tags with maildir flags)\r
74 \r
75 The series passes the test suite. For the maildir store, there are\r
76 additional tests, but you need need the modularized testsuite (taken\r
77 from git). The whole patch series is also available from\r
78 git://rtime.felk.cvut.cz/notmuch.git mailstore-abstraction-v1 (this\r
79 branch wont be rebased).\r
80 \r
81 Known bugs and limitations:\r
82 \r
83 - Only file-based storage is suported. Notmuch access the files\r
84   directly, and not via the mailstore interface.\r
85 \r
86 - (maildir) Viewing/storing of attachments of unread messages doesn't\r
87   work. The reason is that when you view the message it its unread tag\r
88   is removed which leads to rename of the file, but Emacs still uses\r
89   the original name to access the attachment.\r
90 \r
91   Workaround: close the message and open it again.\r
92 \r
93 Maildir howto:\r
94 \r
95 1. Backup you emails\r
96 2. Apply the patches (at least 1-3)\r
97 3. Configure notmuch to use maildir store\r
98 cat > ~/.notmuch-config <<EOF\r
99 [mailstore]\r
100 type=maildir\r
101 EOF\r
102 4. Enjoy\r
103 \r
104 Advantages for me:\r
105 \r
106 - Whenever I read a message my mobile phone gets that information\r
107   since I run offlineimap periodically on background.\r
108 - My mailsync script (notmuch new + tagging) is much faster because it\r
109   does not call offlineimap and notmuchsync (two times). I call it\r
110   manually, because I want to decide when new mail should appear.\r
111 \r
112 Cheers,\r
113 -Michal\r