/* Copyright (c) 2005-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "hostpid.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "mail-storage-settings.h"
#include "smtp-submit-settings.h"
#include "imap-settings.h"
#include <stddef.h>
#include <unistd.h>
const char **error_r);
/* <settings checks> */
{ "imap-master", 0600, "", "" }
};
};
};
/* </settings checks> */
.name = "imap",
.protocol = "imap",
.type = "",
.executable = "imap",
.user = "",
.group = "",
.privileged_group = "",
.extra_groups = "$default_internal_group",
.chroot = "",
.process_min_avail = 0,
.process_limit = 1024,
.client_limit = 1,
.service_count = 1,
.idle_kill = 0,
.unix_listeners = { { &imap_unix_listeners_buf,
sizeof(imap_unix_listeners[0]) } },
};
};
.rawlog_dir = "",
/* 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 = "in=%i out=%o deleted=%{deleted} "
"expunged=%{expunged} trashed=%{trashed} "
"hdr_count=%{fetch_hdr_count} hdr_bytes=%{fetch_hdr_bytes} "
"body_count=%{fetch_body_count} body_bytes=%{fetch_body_bytes}",
.imap_id_send = "name *",
.imap_id_log = "",
.imap_fetch_failure = "disconnect-immediately:disconnect-after:no-after",
.imap_metadata = FALSE,
.imap_hibernate_timeout = 0,
.imap_urlauth_host = "",
.imap_urlauth_port = 143
};
};
.module_name = "imap",
.struct_size = sizeof(struct imap_settings),
};
/* <settings checks> */
struct imap_client_workaround_list {
const char *name;
};
{ "delay-newmail", WORKAROUND_DELAY_NEWMAIL },
{ "tb-extra-mailbox-sep", WORKAROUND_TB_EXTRA_MAILBOX_SEP },
{ "tb-lsub-flags", WORKAROUND_TB_LSUB_FLAGS },
{ NULL, 0 }
};
static int
const char **error_r)
{
const char *const *str;
break;
}
}
"Unknown workaround: %s", *str);
return -1;
}
}
return 0;
}
static bool
{
return FALSE;
else {
return FALSE;
}
return TRUE;
}
/* </settings checks> */