imap-settings.c revision 98348e3f27a2f59c2f02cd67974004b4cd595c8c
/* Copyright (c) 2005-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "mail-storage-settings.h"
#include "imap-settings.h"
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
const char **error_r);
/* <settings checks> */
static struct file_listener_settings imap_unix_listeners_array[] = {
};
static struct file_listener_settings *imap_unix_listeners[] = {
};
static buffer_t imap_unix_listeners_buf = {
imap_unix_listeners, sizeof(imap_unix_listeners), { 0, }
};
/* </settings checks> */
struct service_settings imap_service_settings = {
.name = "imap",
.protocol = "imap",
.type = "",
.executable = "imap",
.user = "",
.group = "",
.privileged_group = "",
.extra_groups = "",
.chroot = "",
.process_min_avail = 0,
.process_limit = 1024,
.client_limit = 1,
.service_count = 1,
.vsz_limit = -1U,
.unix_listeners = { { &imap_unix_listeners_buf,
sizeof(imap_unix_listeners[0]) } },
};
static const struct setting_define imap_setting_defines[] = {
};
static const struct imap_settings imap_default_settings = {
.mail_debug = FALSE,
/* RFC-2683 recommends at least 8000 bytes. Some clients however don't
break large message sets to multiple commands, so we're pretty
liberal by default. */
.imap_capability = "",
.imap_client_workarounds = "",
.imap_logout_format = "bytes=%i/%o",
.imap_id_send = "",
.imap_id_log = ""
};
static const struct setting_parser_info *imap_setting_dependencies[] = {
};
const struct setting_parser_info imap_setting_parser_info = {
.module_name = "imap",
.struct_size = sizeof(struct imap_settings),
};
/* <settings checks> */
struct imap_client_workaround_list {
const char *name;
enum imap_client_workarounds num;
};
static const struct imap_client_workaround_list imap_client_workaround_list[] = {
{ "delay-newmail", WORKAROUND_DELAY_NEWMAIL },
{ "outlook-idle", 0 }, /* only for backwards compatibility */
{ "netscape-eoh", WORKAROUND_NETSCAPE_EOH },
{ "tb-extra-mailbox-sep", WORKAROUND_TB_EXTRA_MAILBOX_SEP },
{ NULL, 0 }
};
static int
const char **error_r)
{
enum imap_client_workarounds client_workarounds = 0;
const struct imap_client_workaround_list *list;
const char *const *str;
break;
}
}
"Unknown workaround: %s", *str);
return -1;
}
}
return 0;
}
static bool
{
return FALSE;
return TRUE;
}
/* </settings checks> */