imapc-settings.c revision 35779754964119c94b919b75bbf1ccc1c02aad52
/* Copyright (c) 2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "settings-parser.h"
#include "mail-storage-settings.h"
#include "imapc-settings.h"
#include <stddef.h>
static const struct setting_define imapc_setting_defines[] = {
};
static const struct imapc_settings imapc_default_settings = {
.imapc_host = "",
.imapc_port = 143,
.imapc_user = "%u",
.imapc_password = "",
.imapc_ssl = "no:imaps:starttls",
.imapc_ssl_ca_dir = "",
.imapc_ssl_verify = TRUE,
.imapc_rawlog_dir = ""
};
static const struct setting_parser_info imapc_setting_parser_info = {
.module_name = "imapc",
.struct_size = sizeof(struct imapc_settings),
};
const struct setting_parser_info *imapc_get_setting_parser_info(void)
{
return &imapc_setting_parser_info;
}
/* <settings checks> */
const char **error_r)
{
*error_r = "invalid imapc_port";
return FALSE;
}
#ifndef CONFIG_BINARY
"imapc_ssl_ca_dir: access(%s) failed: %m",
return FALSE;
}
#endif
return TRUE;
}