/*
* Index messages by EUID per room.
*
- * Copyright (c) 1987-2017 by the citadel.org team
+ * Copyright (c) 1987-2019 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 3.
char *data;
int data_len;
- syslog(LOG_DEBUG, "euidindex: ndexing message #%ld <%s> in <%s>", msgnum, euid, qrbuf->QRname);
+ syslog(LOG_DEBUG, "euidindex: indexing message #%ld <%s> in <%s>", msgnum, euid, qrbuf->QRname);
key_len = strlen(euid) + sizeof(long) + 1;
key = malloc(key_len);
/*
* This module handles network mail and mailing list processing.
*
- * Copyright (c) 2000-2018 by the citadel.org team
+ * Copyright (c) 2000-2019 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 3.
#include "netspool.h"
#include "netmail.h"
-struct CitContext networker_spool_CC;
-
/* comes from lookup3.c from libcitadel... */
extern uint32_t hashlittle( const void *key, size_t length, uint32_t initval);
syslog(LOG_DEBUG, "network: full processing in %ld seconds.", CtdlGetConfigLong("c_net_freq") - (time(NULL)- last_run));
}
- become_session(&networker_spool_CC);
begin_critical_section(S_RPLIST);
RL.rplist = rplist;
rplist = NULL;
/*
* Module entry point
*/
-
-
CTDL_MODULE_INIT(network)
{
if (!threading)
{
- CtdlFillSystemContext(&networker_spool_CC, "CitNetSpool");
CtdlRegisterRoomHook(network_room_handler);
CtdlRegisterCleanupHook(destroy_network_queue_room_locked);
CtdlRegisterSessionHook(network_do_queue, EVT_TIMER, PRIO_QUEUE + 10);
/*
* Consolidate mail from remote POP3 accounts.
*
- * Copyright (c) 2007-2017 by the citadel.org team
+ * Copyright (c) 2007-2019 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
long interval;
};
-struct CitContext pop3_client_CC;
static int doing_pop3client = 0;
struct p3cq *p3cq = NULL;
time_t fastest_scan;
struct p3cq *pptr = NULL;
- become_session(&pop3_client_CC);
-
if (CtdlGetConfigLong("c_pop3_fastest") < CtdlGetConfigLong("c_pop3_fetch")) {
fastest_scan = CtdlGetConfigLong("c_pop3_fastest");
}
{
if (!threading)
{
- CtdlFillSystemContext(&pop3_client_CC, "POP3aggr");
CtdlREGISTERRoomCfgType(pop3client, ParseGeneric, 0, 5, SerializeGeneric, DeleteGenericCfgLine);
CtdlRegisterSessionHook(pop3client_scan, EVT_TIMER, PRIO_AGGR + 50);
}
};
time_t last_run = 0L;
-struct CitContext rss_CC;
struct rssurl *rsstodo = NULL;
return;
}
- become_session(&rss_CC);
syslog(LOG_DEBUG, "rssclient: started");
CtdlForEachRoom(rssclient_scan_room, NULL);
rss_pull_feeds();
syslog(LOG_INFO, "rssclient: using %s", curl_version());
CtdlRegisterSessionHook(rssclient_scan, EVT_TIMER, PRIO_AGGR + 300);
}
- else
- {
- CtdlFillSystemContext(&rss_CC, "rssclient");
- }
return "rssclient";
}
int bytes_sent;
};
-struct CitContext smtp_client_CC;
static int doing_smtpclient = 0;
long *smtpq = NULL; // array of msgnums containing queue instructions
int smtpq_count = 0; // number of queue messages in smtpq
doing_smtpclient = 1;
syslog(LOG_DEBUG, "smtpclient: start queue run");
- pthread_setspecific(MyConKey, (void *) &smtp_client_CC);
if (CtdlGetRoom(&CC->room, SMTP_SPOOLOUT_ROOM) != 0) {
syslog(LOG_WARNING, "Cannot find room <%s>", SMTP_SPOOLOUT_ROOM);
CTDL_MODULE_INIT(smtpclient)
{
if (!threading) {
- CtdlFillSystemContext(&smtp_client_CC, "SMTP_Send");
CtdlRegisterMessageHook(smtp_aftersave, EVT_AFTERSAVE);
CtdlRegisterSessionHook(smtp_do_queue, EVT_TIMER, PRIO_AGGR + 50);
smtp_init_spoolout();
"specify the -h flag to the server when you start it up.\n"
"note that it may not have a leading /");
-
setup_titles[eSysAdminName] = _("Citadel administrator username:");
setup_text[eSysAdminName] = _(
"Please enter the name of the Citadel user account that should be granted "
"this user account will be created if it does not exist. For external "
"authentication this user account has to exist.");
-
setup_titles[eSysAdminPW] = _("Administrator password:");
setup_text[eSysAdminPW] = _(
"Enter a password for the system administrator. When setup\n"