have access to libSieve, otherwise a stub function is installed.
serv_sieve.h is also now included in serv_managesieve.c, which will
give serv_managesieve access to the msiv_* API functions.
#include "snprintf.h"
#endif
+#ifdef HAVE_LIBSIEVE
+
+#include "serv_sieve.h"
/**
CtdlRegisterSessionHook(mgsve_create_room, EVT_LOGIN);
return "$Id: serv_managesieve.c 4570 2006-08-27 02:07:18Z dothebart $";
}
+
+#else /* HAVE_LIBSIEVE */
+
+char *serv_managesieve_init(void)
+{
+ lprintf(CTDL_INFO, "This server is missing libsieve. Managesieve protocol is disabled..\n");
+ return "$Id: $";
+}
+
+#endif /* HAVE_LIBSIEVE */
struct sdm_userdata *u; /* Info related to the current session */
};
-#endif /* HAVE_LIBSIEVE */
/* If you change this string you will break all of your Sieve configs. */
#define CTDLSIEVECONFIGSEPARATOR "\n-=<CtdlSieveConfigSeparator>=-\n"
int msiv_deletescript(struct sdm_userdata *u, char *script_name);
void msiv_putscript(struct sdm_userdata *u, char *script_name, char *script_content);
+#endif /* HAVE_LIBSIEVE */