imap-settings.c revision 4f7987384f306ea93b0258623a4cdd69601f2d0e
/* Copyright (c) 2005-2009 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 = {
MEMBER(process_limit) 0,
MEMBER(client_limit) 0,
sizeof(imap_unix_listeners[0]) } },
};
static const struct setting_define imap_setting_defines[] = {
};
static const struct imap_settings imap_default_settings = {
/* 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. */
};
static const struct setting_parser_info *imap_setting_dependencies[] = {
};
const struct setting_parser_info imap_setting_parser_info = {
};
/* <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> */