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 640DA40D144 for ; Wed, 13 Oct 2010 05:14:25 -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 ebJ4Mghl-G-N for ; Wed, 13 Oct 2010 05:14:12 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id E9D2840D143 for ; Wed, 13 Oct 2010 05:14:11 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 45E8E19F33E2; Wed, 13 Oct 2010 14:14:11 +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 3akFoJJMFIoC; Wed, 13 Oct 2010 14:14:09 +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 DAD9619F33CC; Wed, 13 Oct 2010 14:14:09 +0200 (CEST) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id D95B915C082; Wed, 13 Oct 2010 14:14:09 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1P60Dg-0005VH-DA; Wed, 13 Oct 2010 14:14:08 +0200 From: Michal Sojka To: notmuch@notmuchmail.org Subject: [PATCH 0/4] Maildir synchronization v2 Date: Wed, 13 Oct 2010 14:13:54 +0200 Message-Id: <1286972038-21064-1-git-send-email-sojkam1@fel.cvut.cz> X-Mailer: git-send-email 1.7.1.3.g75e44 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: Wed, 13 Oct 2010 12:14:25 -0000 Hi, this is an updated version of patches sent in id:1273580061-22580-1-git-send-email-sojkam1@fel.cvut.cz. Only the last patch (tests) was actually updated to work with new test suite. These patches has already been tested by several people and I think they are ready to be merged. They can be pulled by: git pull git://rtime.felk.cvut.cz/notmuch maildir-sync-v2 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. THERE IS CURRENTLY ONE KNOWN ISSUE: Viewing/storing of attachments of unread messages doesn't work. The reason is that when you view the message its unread tag is removed which causes the file to be renamed, but Emacs still uses the original name to access the attachment. You can workaround this by closing the message and opening it again. This issue will be fixed after we (I) implement "notmuch cat" command. With this command, emacs would not access the messages by the file name, but by running notmuch cat id: which will always give the correct content. 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/maildir-sync | 216 +++++++++++++++++++++++++++++++++++++++++++++ test/notmuch-test | 2 +- test/test-lib.sh | 14 +++- 14 files changed, 588 insertions(+), 7 deletions(-) create mode 100755 test/maildir-sync