From 3e4ca247320c6f8082be6f2aaf71e6f0c9084492 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 27 Sep 2014 21:43:53 +0200 Subject: [PATCH] Re: [RFC] database: get and set mapping of dovecot compatible maildir keywords --- 85/ae6f65fedfbb6cb8620249f78c43694c9e9d51 | 102 ++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 85/ae6f65fedfbb6cb8620249f78c43694c9e9d51 diff --git a/85/ae6f65fedfbb6cb8620249f78c43694c9e9d51 b/85/ae6f65fedfbb6cb8620249f78c43694c9e9d51 new file mode 100644 index 000000000..ae99d801e --- /dev/null +++ b/85/ae6f65fedfbb6cb8620249f78c43694c9e9d51 @@ -0,0 +1,102 @@ +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 1AF98431FBF + for ; Sat, 27 Sep 2014 12:44:14 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +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 lSmSqUwscjhd for ; + Sat, 27 Sep 2014 12:44:10 -0700 (PDT) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by olra.theworths.org (Postfix) with ESMTP id 916D9431FBD + for ; Sat, 27 Sep 2014 12:44:10 -0700 (PDT) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id D87CF3CFEBF; + Sat, 27 Sep 2014 21:44:04 +0200 (CEST) +X-Virus-Scanned: IMAP STYX AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, + port 10044) + with ESMTP id jAEC3aCs3XWp; Sat, 27 Sep 2014 21:44:00 +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 6F0A73CFEC1; + Sat, 27 Sep 2014 21:44:00 +0200 (CEST) +Received: from wsh by steelpick.2x.cz with local (Exim 4.84) + (envelope-from ) + id 1XXxuL-0007YS-OD; Sat, 27 Sep 2014 21:43:53 +0200 +From: Michal Sojka +To: David Bremner , notmuch@notmuchmail.org +Subject: Re: [RFC] database: get and set mapping of dovecot compatible + maildir keywords +In-Reply-To: <1411805835-3563-1-git-send-email-david@tethera.net> +References: <1411805835-3563-1-git-send-email-david@tethera.net> +User-Agent: Notmuch/0.18.1+101~g56b0ff0 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sat, 27 Sep 2014 21:43:53 +0200 +Message-ID: <87iok8vog6.fsf@steelpick.2x.cz> +MIME-Version: 1.0 +Content-Type: text/plain +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: Sat, 27 Sep 2014 19:44:14 -0000 + +Hi David, + +On Sat, Sep 27 2014, David Bremner wrote: +> A future modification of notmuch_message_tags_to_maildir_flags and +> notmuch_message_maildir_flags_to_tags could allow 26 more tags to be +> synced via maildir. +> --- +> +> I'm not sure if this is worth pursuing or not, but I thought I'd toss +> it out there. On IRC the other day the topic of syncing IMAP keywords +> to notmuch tags came up again, in particular the dovecot variant that +> maps 26 user defined keywords to characters a-z on the end of the +> maildir info. One roadblock I saw at the time was the need for +> configuration of mapping of letters to tags. This patch is the result +> of my realizing that at least that part is not hard (unlike the rabbit +> hole we seemed to get into for e.g. log configuration). +> +> Some downsides of this approach are fairly obvious +> +> - only 26 tags. It turns out I don't have that many non-nmbug tags +> that I really care about. YMMV, of course. +> +> - nonstandard. this won't roundtrip via offlineimap (unless +> offlineimap is modified). Directly syncing the maildir or using +> some dovecot specific syncer would work. +> +> Some upsides are: +> +> - Provides an IMAP bridge solution; compatible with dovecot; my +> impression is this is the most common imap solution among +> notmuch users. +> - relatively simple implementation, just need to +> update the maildir name synching routines. Of course no +> implementation is as simple as possible +> +> lib/database.cc | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +I'd prefer having the mapping stored in the config file rather than in +the database. This would allow me to synchronize the configuration +between multiple computers. Would there be some benefit of having the +mapping (also) in the database? + +-Michal -- 2.26.2