dovecot-2.2: Verify that mailbox_idle_check_interval setting isn...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 13 00:27:17 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/51f9a87170f2
changeset: 14881:51f9a87170f2
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 13 00:27:07 2012 +0300
description:
Verify that mailbox_idle_check_interval setting isn't 0.
diffstat:
src/lib-storage/mail-storage-settings.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r d7df4855dc94 -r 51f9a87170f2 src/lib-storage/mail-storage-settings.c
--- a/src/lib-storage/mail-storage-settings.c Sun Aug 12 09:57:20 2012 +0300
+++ b/src/lib-storage/mail-storage-settings.c Mon Aug 13 00:27:07 2012 +0300
@@ -352,6 +352,11 @@
bool uidl_format_ok;
char c;
+ if (set->mailbox_idle_check_interval == 0) {
+ *error_r = "mailbox_idle_check_interval must not be 0";
+ return FALSE;
+ }
+
if (strcmp(set->mail_fsync, "optimized") == 0)
set->parsed_fsync_mode = FSYNC_MODE_OPTIMIZED;
else if (strcmp(set->mail_fsync, "never") == 0)
More information about the dovecot-cvs
mailing list