From 700355d4be56b3b3f641a77520b9068f693827cf Mon Sep 17 00:00:00 2001
From: Daniel Berteaud <daniel@firewall-services.com>
Date: Tue, 26 Feb 2013 18:57:10 +0100
Subject: [PATCH] Move shared mailbox dict to /home/e-smith/db/dovecot

---
 createlinks                                                     | 2 +-
 root/etc/e-smith/templates/etc/dovecot/dovecot.conf/65pluginAcl | 2 +-
 smeserver-dovecot.spec                                          | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/createlinks b/createlinks
index af01611..5a82225 100644
--- a/createlinks
+++ b/createlinks
@@ -23,4 +23,4 @@ event_link("adjust-dovecot", "bootstrap-console-save", "02");
 event_link("dovecot-acl", "email-update", "85");
 event_link("dovecot-acl", "user-create", "85");
 
-safe_touch("root/etc/dovecot/sharedmailbox/dict.db");
+safe_touch("root/home/e-smith/db/dovecot/sharedmailbox.db");
diff --git a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/65pluginAcl b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/65pluginAcl
index d9eff1e..947b4b8 100644
--- a/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/65pluginAcl
+++ b/root/etc/e-smith/templates/etc/dovecot/dovecot.conf/65pluginAcl
@@ -50,7 +50,7 @@ namespace {
 }
 
 plugin {
-  acl_shared_dict = file:/etc/dovecot/sharedmailbox/dict.db
+  acl_shared_dict = file:/home/e-smith/db/dovecot/sharedmailbox.db
 }
 
 plugin {
diff --git a/smeserver-dovecot.spec b/smeserver-dovecot.spec
index 70c43e5..4e7a534 100644
--- a/smeserver-dovecot.spec
+++ b/smeserver-dovecot.spec
@@ -52,8 +52,8 @@ perl createlinks
    --file /var/service/dovecot/log/run 'attr(0755,root,root)' \
    --file /var/service/dovecot/control/1 'attr(0755,root,root)' \
    --dir /var/log/dovecot 'attr(0750,smelog,smelog)' \
-   --dir /etc/dovecot/sharedmailbox/ 'attr(2770,root,sharedmailbox)' \
-   --file /etc/dovecot/sharedmailbox/dict.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \
+   --dir /home/e-smith/db/dovecot 'attr(2770,root,sharedmailbox)' \
+   --file /home/e-smith/db/dovecot/sharedmailbox.db 'attr(0660,root,sharedmailbox) %config(noreplace)' \
    --file /usr/bin/imap-postlogin 'attr(0755,root,root)' \
   > %{name}-%{version}-filelist