/*
- * $Id$
- *
* This module handles self-service subscription/unsubscription to mail lists.
*
* Copyright (c) 2002-2009 by the citadel.org team
#include "citserver.h"
#include "support.h"
#include "config.h"
-#include "room_ops.h"
#include "user_ops.h"
-#include "policy.h"
#include "database.h"
#include "msgbase.h"
#include "internet_addressing.h"
char scanemail[256];
int found_sub = 0;
- if (getroom(&qrbuf, room) != 0) {
+ if (CtdlGetRoom(&qrbuf, room) != 0) {
cprintf("%d There is no list called '%s'\n", ERROR + ROOM_NOT_FOUND, room);
return;
}
char scanemail[256];
int found_sub = 0;
- if (getroom(&qrbuf, room) != 0) {
+ if (CtdlGetRoom(&qrbuf, room) != 0) {
cprintf("%d There is no list called '%s'\n",
ERROR + ROOM_NOT_FOUND, room);
return;
strcpy(address_to_unsubscribe, "");
- if (getroom(&qrbuf, room) != 0) {
+ if (CtdlGetRoom(&qrbuf, room) != 0) {
cprintf("%d There is no list called '%s'\n",
ERROR + ROOM_NOT_FOUND, room);
return;
*/
if (success) {
cprintf("%d %d operation(s) confirmed.\n", CIT_OK, success);
- CtdlLogPrintf(CTDL_NOTICE,
+ syslog(LOG_NOTICE,
"Mailing list: %s %ssubscribed to %s with token %s\n",
email,
(!IsEmptyStr(address_to_unsubscribe)) ? "un" : "",
CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
}
- /* return our Subversion id for the Log */
- return "$Id$";
+ /* return our module name for the log */
+ return "listsub";
}