#include <sys/wait.h>
#include <string.h>
#include <limits.h>
+#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "policy.h"
#include "database.h"
#include "msgbase.h"
-#include "tools.h"
#include "internet_addressing.h"
#include "clientsocket.h"
#include "file_ops.h"
);
/* Convert it to base64 so it looks cool */
- CtdlEncodeBase64(buf, sourcebuf, strlen(sourcebuf));
+ CtdlEncodeBase64(buf, sourcebuf, strlen(sourcebuf), 0);
}
/* Generate and send the confirmation request */
- urlesc(urlroom, qrbuf.QRname);
+ urlesc(urlroom, ROOMNAMELEN, qrbuf.QRname);
snprintf(confirmation_request, sizeof confirmation_request,
/* Generate and send the confirmation request */
- urlesc(urlroom, qrbuf.QRname);
+ urlesc(urlroom, ROOMNAMELEN, qrbuf.QRname);
snprintf(confirmation_request, sizeof confirmation_request,
*/
if (success) {
cprintf("%d %d operation(s) confirmed.\n", CIT_OK, success);
- lprintf(CTDL_NOTICE,
+ CtdlLogPrintf(CTDL_NOTICE,
"Mailing list: %s %ssubscribed to %s with token %s\n",
email,
(!IsEmptyStr(address_to_unsubscribe)) ? "un" : "",
*/
CTDL_MODULE_INIT(listsub)
{
- CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
-
+ if (!threading)
+ {
+ CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
+ }
+
/* return our Subversion id for the Log */
return "$Id$";
}