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 5A694418C34 for ; Tue, 11 May 2010 05:14:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 Mr9rxxkHzeYN for ; Tue, 11 May 2010 05:14:34 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id DFAE04196F0 for ; Tue, 11 May 2010 05:14:33 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 89F1719F3412; Tue, 11 May 2010 14:14:32 +0200 (CEST) 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 YbB+4XZPi1GD; Tue, 11 May 2010 14:14:31 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 2F30519F33F4; Tue, 11 May 2010 14:14:31 +0200 (CEST) Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 16D7DFA003; Tue, 11 May 2010 14:14:31 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1OBoM2-0005so-TT; Tue, 11 May 2010 14:14:30 +0200 From: Michal Sojka To: notmuch@notmuchmail.org Subject: [PATCH 0/4] Maildir synchronization Date: Tue, 11 May 2010 14:14:17 +0200 Message-Id: <1273580061-22580-1-git-send-email-sojkam1@fel.cvut.cz> X-Mailer: git-send-email 1.7.1 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: Tue, 11 May 2010 12:14:48 -0000 Hi, these patches implement synchronization between maildir flags and notmuch tags. The synchronization can be configured to not happen at all (default), to set/unset tags when importing new (or new and renamed) messages and to happen in both directions - set/unset tags during importing and change maildir flags during tagging. The previous version if this feature was present in mailstore abstraction patches. I've extracted it from there and I'm sending it separately. I'm quite heavily dependent on this feature so I hope this version is closer to merging than the previous one. The last patch needs git-based test suite patches sent yesterday. Michal Sojka (4): lib: Return added message even if it already was in the database Maildir synchronization Make maildir synchronization configurable Tests for maildir synchronization lib/database-private.h | 2 +- lib/database.cc | 19 ++++- lib/message.cc | 226 ++++++++++++++++++++++++++++++++++++++++++++ lib/notmuch-private.h | 4 + lib/notmuch.h | 29 ++++++- notmuch-client.h | 7 ++ notmuch-config.c | 48 +++++++++ notmuch-new.c | 7 +- notmuch-restore.c | 2 + notmuch-setup.c | 17 ++++ notmuch-tag.c | 2 + test/t0011-maildir-sync.sh | 216 ++++++++++++++++++++++++++++++++++++++++++ test/test-lib.sh | 11 ++- 13 files changed, 582 insertions(+), 8 deletions(-) create mode 100755 test/t0011-maildir-sync.sh