From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8BB9Nj6PV19CNwAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 14:03:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WHNmMj6PV19FAwAA1q6Kng (envelope-from ) for ; Tue, 08 Sep 2020 14:03:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A3B949401CF for ; Tue, 8 Sep 2020 14:03:42 +0000 (UTC) Received: from localhost ([::1]:58956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFeDl-0008LR-ML for larch@yhetil.org; Tue, 08 Sep 2020 10:03:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFe1r-0008RD-0A for guix-devel@gnu.org; Tue, 08 Sep 2020 09:51:23 -0400 Received: from mx4.mail.mmer.org ([178.22.66.29]:14012) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFe1p-0001cJ-B8 for guix-devel@gnu.org; Tue, 08 Sep 2020 09:51:22 -0400 Received: from delta (92-109-1-225.cable.dynamic.v4.ziggo.nl [92.109.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx4.mail.mmer.org (Postfix) with ESMTPSA id E39C09CC4A; Tue, 8 Sep 2020 13:20:31 +0000 (UTC) From: Alexey Abramov To: guix-devel@gnu.org Subject: [PATCH v4 0/8] Dovecot and pigeonhole improvements. Date: Tue, 8 Sep 2020 15:51:06 +0200 Message-Id: <20200908135106.17731-1-levenson@mmer.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.22.66.29; envelope-from=levenson@mmer.org; helo=mx4.mail.mmer.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/08 09:51:18 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 42899@debbugs.gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 3.99 X-TUID: p7Hiaw61O5JJ Hi Guix, I have been a happy user of dovecot+pigeonhole for a few weeks now. I am adding @guix-devel to give these changes more attention. dovecot-pigeonhole is already merged, Thank you Tobias. The next step is to provide some common location where dovecot services can find plugins and their settings. I created /etc/dovecot/modules directory, which is actually a link to "/run/current-system/profile/lib/dovecot" and it is creating during the activation time. By doing this we can make sure, that all dovecot services, those which come with dovecot, can find extensions like sieve/managesieve and their extra settings. I am using mbsync for my email synchronization. And use the following snippet for my IMAPAccount/IMAPStore. --8<---------------cut here---------------start------------->8--- IMAPAccount current-user Host localhost User aabramov Tunnel /run/current-system/profile/libexec/dovecot/imap IMAPStore current-user Account current-user --8<---------------cut here---------------end--------------->8--- I noticed that when I run imap this way, it reads dovecot configuration, and if some global (dovecot) settings are defined below the service ones, I get a lot of warning message that they won't affect those, and I should move them above in order to make them work. That is why I changed the order of serialization. I also added some extra settings to the configuration, but those are not for all the services. If you don't apply any values to them, they are still serialized to every service, hence services are crashing with a fatal error. I added a change that will prevent it. I have rebased my changes and provide v4 series of patches. Please let me know what you think. Alexey Abramov (7): services: dovecot: Use modules via symlink to system profile. services: dovecot: Serialize global settings first. services: dovecot: Only serialize settings with non-empty values. services: dovecot: Add 'mail-attribute-dict' configuration option. services: dovecot: Add 'imap-metadata?' protocol configuration option. services: dovecot: Add 'managesieve-notify-capability' option. services: dovecot: Add 'managesieve-sieve-capability' option. Efraim Flashner (1): gnu: dovecot: Set moduledir to global directory. doc/guix.texi | 53 +++++++++++++- gnu/packages/mail.scm | 9 ++- gnu/services/mail.scm | 165 ++++++++++++++++++++++++++---------------- 3 files changed, 159 insertions(+), 68 deletions(-) -- Alexey