void imap_output_capability_string(void) {
IAPuts("CAPABILITY IMAP4REV1 NAMESPACE ID AUTH=PLAIN AUTH=LOGIN UIDPLUS");
-#ifdef HAVE_OPENSSL
if (!CC->redirect_ssl) IAPuts(" STARTTLS");
-#endif
#ifndef DISABLE_IMAP_ACL
IAPuts(" ACL");
*/
void imaps_greeting(void) {
CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
-#ifdef HAVE_OPENSSL
if (!CC->redirect_ssl) CC->kill_me = KILLME_NO_CRYPTO; /* kill session if no crypto */
-#endif
imap_greeting();
}
RegisterImapCMD("LOGIN", "", imap_login, I_FLAG_NONE);
RegisterImapCMD("AUTHENTICATE", "", imap_authenticate, I_FLAG_NONE);
RegisterImapCMD("CAPABILITY", "", imap_capability, I_FLAG_NONE);
-#ifdef HAVE_OPENSSL
RegisterImapCMD("STARTTLS", "", imap_starttls, I_FLAG_NONE);
-#endif
/* The commans below require a logged-in state */
RegisterImapCMD("SELECT", "", imap_select, I_FLAG_LOGGED_IN);
if (!threading) {
CtdlRegisterServiceHook(CtdlGetConfigInt("c_imap_port"), NULL, imap_greeting, imap_command_loop, NULL, CitadelServiceIMAP);
-#ifdef HAVE_OPENSSL
CtdlRegisterServiceHook(CtdlGetConfigInt("c_imaps_port"), NULL, imaps_greeting, imap_command_loop, NULL, CitadelServiceIMAPS);
-#endif
CtdlRegisterSessionHook(imap_cleanup_function, EVT_STOP, PRIO_STOP + 30);
}