[PATCH 0/4] Maildir synchronization
[notmuch-archives.git] / 74 / 0c323122a663d32103133322e3c1b44691487a
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 5A694418C34\r
6         for <notmuch@notmuchmail.org>; Tue, 11 May 2010 05:14:48 -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.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] 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 Mr9rxxkHzeYN for <notmuch@notmuchmail.org>;\r
16         Tue, 11 May 2010 05:14:34 -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 DFAE04196F0\r
19         for <notmuch@notmuchmail.org>; Tue, 11 May 2010 05:14:33 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 89F1719F3412;\r
22         Tue, 11 May 2010 14:14:32 +0200 (CEST)\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)\r
27         with ESMTP id YbB+4XZPi1GD; Tue, 11 May 2010 14:14:31 +0200 (CEST)\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 2F30519F33F4;\r
30         Tue, 11 May 2010 14:14:31 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (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 16D7DFA003;\r
34         Tue, 11 May 2010 14:14:31 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1OBoM2-0005so-TT; Tue, 11 May 2010 14:14:30 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 0/4] Maildir synchronization\r
41 Date: Tue, 11 May 2010 14:14:17 +0200\r
42 Message-Id: <1273580061-22580-1-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.1\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: Tue, 11 May 2010 12:14:48 -0000\r
57 \r
58 Hi,\r
59 \r
60 these patches implement synchronization between maildir flags and\r
61 notmuch tags. The synchronization can be configured to not happen at\r
62 all (default), to set/unset tags when importing new (or new and\r
63 renamed) messages and to happen in both directions - set/unset tags\r
64 during importing and change maildir flags during tagging.\r
65 \r
66 The previous version if this feature was present in mailstore\r
67 abstraction patches. I've extracted it from there and I'm sending it\r
68 separately. I'm quite heavily dependent on this feature so I hope this\r
69 version is closer to merging than the previous one.\r
70 \r
71 The last patch needs git-based test suite patches sent yesterday.\r
72 \r
73 Michal Sojka (4):\r
74   lib: Return added message even if it already was in the database\r
75   Maildir synchronization\r
76   Make maildir synchronization configurable\r
77   Tests for maildir synchronization\r
78 \r
79  lib/database-private.h     |    2 +-\r
80  lib/database.cc            |   19 ++++-\r
81  lib/message.cc             |  226 ++++++++++++++++++++++++++++++++++++++++++++\r
82  lib/notmuch-private.h      |    4 +\r
83  lib/notmuch.h              |   29 ++++++-\r
84  notmuch-client.h           |    7 ++\r
85  notmuch-config.c           |   48 +++++++++\r
86  notmuch-new.c              |    7 +-\r
87  notmuch-restore.c          |    2 +\r
88  notmuch-setup.c            |   17 ++++\r
89  notmuch-tag.c              |    2 +\r
90  test/t0011-maildir-sync.sh |  216 ++++++++++++++++++++++++++++++++++++++++++\r
91  test/test-lib.sh           |   11 ++-\r
92  13 files changed, 582 insertions(+), 8 deletions(-)\r
93  create mode 100755 test/t0011-maildir-sync.sh\r
94 \r