I was thinking, "wouldn't it be nice if I could configure imapd and
sqwebmaild to point to the same shared folder index file?"
Then I looked through the source code, and found that I could. However the
configuration setting is not included in the default sqwebmaild
configuration file.
The attached patch adds it. It also allows sharedindexinstall to take a
parameter giving the chosen directory, rather than forcing you to use the
hardcoded location.
Regards,
Brian.
diff -uNr sqwebmail-5.0.1.orig/maildir/sharedindexinstall.in
sqwebmail-5.0.1/maildir/sharedindexinstall.in
--- sqwebmail-5.0.1.orig/maildir/sharedindexinstall.in Sun Jan 11 02:47:33 2004
+++ sqwebmail-5.0.1/maildir/sharedindexinstall.in Mon Mar 14 10:43:16 2005
@@ -6,8 +6,7 @@
#
# Sample script to safely update shared folder index files.
-prefix="@prefix@"
-sysconfdir="@sysconfdir@"
+sysconfdir="${1-@sysconfdir@}"
shareddir="$sysconfdir/shared" # Where the shared index files are kept
diff -uNr sqwebmail-5.0.1.orig/sqwebmail/sqwebmaild.dist.in
sqwebmail-5.0.1/sqwebmail/sqwebmaild.dist.in
--- sqwebmail-5.0.1.orig/sqwebmail/sqwebmaild.dist.in Thu Oct 21 02:13:18 2004
+++ sqwebmail-5.0.1/sqwebmail/sqwebmaild.dist.in Mon Mar 14 10:00:55 2005
@@ -41,3 +41,11 @@
# SQWEBMAIL_PREFORK=5
+##NAME: SQWEBMAIL_SHAREDINDEXFILE:0
+#
+# The index of all accessible folders. Do not change this setting unless
+# you know what you're doing. See README.sharedfolders for additional
+# information.
+
+SQWEBMAIL_SHAREDINDEXFILE=@sysconfdir@/shared/index
+