]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Made CRITICAL_MSG* public to MAIL_ERRSTR_CRITICAL_MSG* in mail-error.h.
authorTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 02:45:06 +0000 (04:45 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 02:45:06 +0000 (04:45 +0200)
--HG--
branch : HEAD

src/lib-storage/mail-error.h
src/lib-storage/mail-storage.c
src/lib-storage/mail-storage.h
src/lib-storage/mailbox-list.c

index ab9536d7103e7dca8a4ef96c7023098aa9df4359..0a65febe8b06094501980ffa5ea4a9da1fceb0cd 100644 (file)
 #define MAIL_ERRSTR_NO_SPACE "Not enough disk space"
 #define MAIL_ERRSTR_LOCK_TIMEOUT "Timeout while waiting for lock"
 
+/* Message to show to users when critical error occurs */
+#define MAIL_ERRSTR_CRITICAL_MSG \
+       "Internal error occurred. Refer to server log for more information."
+#define MAIL_ERRSTR_CRITICAL_MSG_STAMP \
+       MAIL_ERRSTR_CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
+
 #define T_MAIL_ERR_MAILBOX_NOT_FOUND(name) \
        t_strdup_printf(MAIL_ERRSTR_MAILBOX_NOT_FOUND, name)
 
index 107103a13dd346c574333641d36e0a97c294f142..dd66bba6861b69436d5e2dded62a4d2d3684dfed 100644 (file)
 #include <time.h>
 #include <ctype.h>
 
-/* Message to show to users when critical error occurs */
-#define CRITICAL_MSG \
-       "Internal error occurred. Refer to server log for more information."
-#define CRITICAL_MSG_STAMP CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
-
 #define DEFAULT_MAX_KEYWORD_LENGTH 50
 
 struct mail_storage_module_register mail_storage_module_register = { 0 };
@@ -294,8 +289,9 @@ void mail_storage_set_internal_error(struct mail_storage *storage)
 
        i_free(storage->error_string);
        storage->error_string =
-               strftime(str, sizeof(str), CRITICAL_MSG_STAMP, tm) > 0 ?
-               i_strdup(str) : i_strdup(CRITICAL_MSG);
+               strftime(str, sizeof(str),
+                        MAIL_ERRSTR_CRITICAL_MSG_STAMP, tm) > 0 ?
+               i_strdup(str) : i_strdup(MAIL_ERRSTR_CRITICAL_MSG);
        storage->error = MAIL_ERROR_TEMP;
 }
 
index d515040223096d49f43b28b960bc0f15482dde2f..5502c084e53a1f39778f3ddd98f1bd8bc1c996b7 100644 (file)
@@ -39,7 +39,9 @@ enum mail_storage_flags {
        MAIL_STORAGE_FLAG_NFS_FLUSH_STORAGE     = 0x800,
        MAIL_STORAGE_FLAG_NFS_FLUSH_INDEX       = 0x1000,
        /* Don't use fsync() or fdatasync() */
-       MAIL_STORAGE_FLAG_FSYNC_DISABLE         = 0x2000
+       MAIL_STORAGE_FLAG_FSYNC_DISABLE         = 0x2000,
+       /* Force opening mailbox and ignoring any ACLs */
+       MAIL_STORAGE_FLAG_IGNORE_ACLS           = 0x4000
 };
 
 enum mailbox_open_flags {
index 0de285fb5f6d9c1648056ad1dc003b8d9520083a..fd6e2354bcb3a92822c48656c45fe7fb20f30eb9 100644 (file)
 #define MAILBOX_MAX_HIERARCHY_LEVELS 20
 #define MAILBOX_MAX_HIERARCHY_NAME_LENGTH 200
 
-/* Message to show to users when critical error occurs */
-#define CRITICAL_MSG \
-       "Internal error occurred. Refer to server log for more information."
-#define CRITICAL_MSG_STAMP CRITICAL_MSG " [%Y-%m-%d %H:%M:%S]"
-
 struct ns_list_iterate_context {
        struct mailbox_list_iterate_context ctx;
        struct mailbox_list_iterate_context *backend_ctx;
@@ -780,8 +775,9 @@ void mailbox_list_set_internal_error(struct mailbox_list *list)
 
        i_free(list->error_string);
        list->error_string =
-               strftime(str, sizeof(str), CRITICAL_MSG_STAMP, tm) > 0 ?
-               i_strdup(str) : i_strdup(CRITICAL_MSG);
+               strftime(str, sizeof(str),
+                        MAIL_ERRSTR_CRITICAL_MSG_STAMP, tm) > 0 ?
+               i_strdup(str) : i_strdup(MAIL_ERRSTR_CRITICAL_MSG);
        list->error = MAIL_ERROR_TEMP;
 }