cyrus-imapd/cyrus-imapd-2.3.1-make_md5_defaults.patch
Michal Hlavinka eaf31cffbd - updated to 2.4.6
- "autocreate" and "autosieve" features were removed
2011-02-10 14:56:53 +01:00

33 lines
1.6 KiB
Diff

diff -up cyrus-imapd-2.4.6/lib/imapoptions.make_md5_defaults cyrus-imapd-2.4.6/lib/imapoptions
--- cyrus-imapd-2.4.6/lib/imapoptions.make_md5_defaults 2011-02-10 13:15:02.620914246 +0100
+++ cyrus-imapd-2.4.6/lib/imapoptions 2011-02-10 13:20:09.717498074 +0100
@@ -671,10 +671,14 @@ Blank lines and lines beginning with ``#
mailspool, but each have their own "replicated" copy of
mailboxes.db. */
-{ "md5_dir", NULL, STRING }
+{ "md5_dir", "/var/lib/imap/md5", STRING }
/* Top level directory for MD5 store manipulated by make_md5. File
structure within this directory is one file for each user on the system,
- hashed on the first letter of the userid (e.g., /var/imap/md5/d/dpc22). */
+ hashed on the first letter of the
+ userid (e.g., /var/imap/md5/d/dpc22).
+.PP
+ Note: This RPM build uses \fI/var/lib/imap/md5\fR by default
+ instead of \fI/var/imap/md5\fR for \fBmd5_dir\fR. */
{ "md5_user_map", NULL, STRING }
/* Map file (cdb) to allow partial make_md5 runs. Maps username to UID */
diff -up cyrus-imapd-2.4.6/lib/imapopts.c.make_md5_defaults cyrus-imapd-2.4.6/lib/imapopts.c
--- cyrus-imapd-2.4.6/lib/imapopts.c.make_md5_defaults 2010-12-20 14:20:42.000000000 +0100
+++ cyrus-imapd-2.4.6/lib/imapopts.c 2011-02-10 13:19:14.961641299 +0100
@@ -402,7 +402,7 @@ struct imapopt_s imapopts[] =
{ "replicated" , IMAP_ENUM_MUPDATE_CONFIG_REPLICATED },
{ NULL, IMAP_ENUM_ZERO } } },
{ IMAPOPT_MD5_DIR, "md5_dir", 0, OPT_STRING,
- {(void *)(NULL)},
+ {(void *)("/var/lib/imap/md5")},
{ { NULL, IMAP_ENUM_ZERO } } },
{ IMAPOPT_MD5_USER_MAP, "md5_user_map", 0, OPT_STRING,
{(void *)(NULL)},