2 * This module handles shared rooms, inter-Citadel mail, and outbound
3 * mailing list processing.
5 * Copyright (c) 2000-2012 by the citadel.org team
7 * This program is open source software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License, version 3.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * ** NOTE ** A word on the S_NETCONFIGS semaphore:
16 * This is a fairly high-level type of critical section. It ensures that no
17 * two threads work on the netconfigs files at the same time. Since we do
18 * so many things inside these, here are the rules:
19 * 1. begin_critical_section(S_NETCONFIGS) *before* begin_ any others.
20 * 2. Do *not* perform any I/O with the client during these sections.
25 * Duration of time (in seconds) after which pending list subscribe/unsubscribe
26 * requests that have not been confirmed will be deleted.
28 #define EXP 259200 /* three days */
40 #include <sys/types.h>
42 #if TIME_WITH_SYS_TIME
43 # include <sys/time.h>
47 # include <sys/time.h>
55 # if HAVE_SYS_SYSCALL_H
56 # include <sys/syscall.h>
63 #include <libcitadel.h>
66 #include "citserver.h"
72 #include "internet_addressing.h"
73 #include "serv_network.h"
74 #include "clientsocket.h"
76 #include "citadel_dirs.h"
80 #include "ctdl_module.h"
92 #define IFTODT(mode) (((mode) & 0170000) >> 12)
93 #define DTTOIF(dirtype) ((dirtype) << 12)
97 void ParseLastSent(const CfgLineType *ThisOne, StrBuf *Line, const char *LinePos, OneRoomNetCfg *OneRNCFG)
100 nptr = (RoomNetCfgLine *)
101 malloc(sizeof(RoomNetCfgLine));
102 memset(nptr, 0, sizeof(RoomNetCfgLine));
103 OneRNCFG->lastsent = extract_long(LinePos, 0);
104 OneRNCFG->NetConfigs[ThisOne->C] = nptr;
107 void ParseRoomAlias(const CfgLineType *ThisOne, StrBuf *Line, const char *LinePos, OneRoomNetCfg *rncfg)
110 if (rncfg->RNCfg->sender != NULL)
111 continue; / * just one alowed... * /
112 extract_token(nptr->name, buf, 1, '|', sizeof nptr->name);
113 rncfg->RNCfg->sender = nptr;
117 void ParseSubPendingLine(const CfgLineType *ThisOne, StrBuf *Line, const char *LinePos, OneRoomNetCfg *OneRNCFG)
119 if (time(NULL) - extract_long(LinePos, 3) > EXP)
120 return; /* expired subscription... */
122 ParseGeneric(ThisOne, Line, LinePos, OneRNCFG);
124 void ParseUnSubPendingLine(const CfgLineType *ThisOne, StrBuf *Line, const char *LinePos, OneRoomNetCfg *OneRNCFG)
126 if (time(NULL) - extract_long(LinePos, 2) > EXP)
127 return; /* expired subscription... */
129 ParseGeneric(ThisOne, Line, LinePos, OneRNCFG);
133 void SerializeLastSent(const CfgLineType *ThisOne, StrBuf *OutputBuffer, OneRoomNetCfg *RNCfg, RoomNetCfgLine *data)
135 StrBufAppendBufPlain(OutputBuffer, CKEY(ThisOne->Str), 0);
136 StrBufAppendPrintf(OutputBuffer, "|%ld\n", RNCfg->lastsent);
139 void DeleteLastSent(const CfgLineType *ThisOne, RoomNetCfgLine **data)
145 static const RoomNetCfg SpoolCfgs [4] = {
152 static const long SpoolCfgsCopyN [4] = {
156 int HaveSpoolConfig(OneRoomNetCfg* RNCfg)
160 for (i=0; i < 4; i++) if (RNCfg->NetConfigs[SpoolCfgs[i]] == NULL) interested = 1;
166 void InspectQueuedRoom(SpoolControl **pSC,
167 RoomProcList *room_to_spool,
168 HashList *working_ignetcfg,
169 HashList *the_netmap)
174 sc = (SpoolControl*)malloc(sizeof(SpoolControl));
175 memset(sc, 0, sizeof(SpoolControl));
176 sc->RNCfg = room_to_spool->OneRNCfg;
177 sc->lastsent = room_to_spool->lastsent;
178 sc->working_ignetcfg = working_ignetcfg;
179 sc->the_netmap = the_netmap;
182 * If the room doesn't exist, don't try to perform its networking tasks.
183 * Normally this should never happen, but once in a while maybe a room gets
184 * queued for networking and then deleted before it can happen.
186 if (CtdlGetRoom(&sc->room, room_to_spool->name) != 0) {
187 syslog(LOG_CRIT, "ERROR: cannot load <%s>\n", room_to_spool->name);
191 if (sc->room.QRhighest <= sc->lastsent)
193 syslog(LOG_DEBUG, "nothing to do for <%s>\n", room_to_spool->name);
198 if (sc->RNCfg == NULL)
199 sc->RNCfg = CtdlGetNetCfgForRoom(sc->room.QRnumber);
201 if (!HaveSpoolConfig(sc->RNCfg))
204 /* nothing to do for this room... */
208 /* Now lets remember whats needed for the actual work... */
210 for (i=0; i < 4; i++)
212 aggregate_recipients(&sc->Users[SpoolCfgs[i]],
218 if (StrLength(sc->RNCfg->Sender) > 0)
219 sc->Users[roommailalias] = NewStrBufDup(sc->RNCfg->Sender);
228 * Batch up and send all outbound traffic from the current room
230 void network_spoolout_room(SpoolControl *sc)
232 struct CitContext *CCC = CC;
238 * If the room doesn't exist, don't try to perform its networking tasks.
239 * Normally this should never happen, but once in a while maybe a room gets
240 * queued for networking and then deleted before it can happen.
242 memcpy (&CCC->room, &sc->room, sizeof(ctdlroom));
244 syslog(LOG_INFO, "Networking started for <%s>\n", CCC->room.QRname);
246 /* If there are digest recipients, we have to build a digest */
247 if (sc->Users[digestrecp] != NULL) {
248 sc->digestfp = tmpfile();
249 fprintf(sc->digestfp, "Content-type: text/plain\n\n");
252 /* remember where we started... */
253 lastsent = sc->lastsent;
255 /* Do something useful */
256 CtdlForEachMessage(MSGS_GT, sc->lastsent, NULL, NULL, NULL,
257 network_spool_msg, sc);
259 /* If we wrote a digest, deliver it and then close it */
260 if (StrLength(sc->Users[roommailalias]) > 0)
263 len = StrLength(sc->Users[roommailalias]);
264 if (len + 1 > sizeof(buf))
265 len = sizeof(buf) - 1;
266 memcpy(buf, ChrPtr(sc->Users[roommailalias]), len);
271 snprintf(buf, sizeof buf, "room_%s@%s",
272 CCC->room.QRname, config.c_fqdn);
275 for (i=0; buf[i]; ++i) {
276 buf[i] = tolower(buf[i]);
277 if (isspace(buf[i])) buf[i] = '_';
279 if (sc->digestfp != NULL) {
280 fprintf(sc->digestfp,
281 " -----------------------------------"
282 "------------------------------------"
284 "You are subscribed to the '%s' "
286 "To post to the list: %s\n",
287 CCC->room.QRname, buf
289 network_deliver_digest(sc); /* deliver and close */
292 /* Now rewrite the config file */
293 if (sc->lastsent != lastsent)
295 sc->RNCfg = CtdlGetNetCfgForRoom(sc->room.QRnumber);
297 sc->RNCfg->lastsent = sc->lastsent;
298 sc->RNCfg->changed = 1;
300 end_critical_section(S_NETCONFIGS);
304 * Process a buffer containing a single message from a single file
305 * from the inbound queue
307 void network_process_buffer(char *buffer, long size, HashList *working_ignetcfg, HashList *the_netmap, int *netmap_changed)
309 struct CitContext *CCC = CC;
311 struct CtdlMessage *msg = NULL;
314 struct recptypes *recp = NULL;
315 char target_room[ROOMNAMELEN];
316 struct ser_ret sermsg;
317 char *oldpath = NULL;
318 char filename[PATH_MAX];
320 const StrBuf *nexthop = NULL;
321 unsigned char firstbyte;
322 unsigned char lastbyte;
324 QN_syslog(LOG_DEBUG, "network_process_buffer() processing %ld bytes\n", size);
326 /* Validate just a little bit. First byte should be FF and * last byte should be 00. */
327 firstbyte = buffer[0];
328 lastbyte = buffer[size-1];
329 if ( (firstbyte != 255) || (lastbyte != 0) ) {
330 QN_syslog(LOG_ERR, "Corrupt message ignored. Length=%ld, firstbyte = %d, lastbyte = %d\n",
331 size, firstbyte, lastbyte);
335 /* Set default target room to trash */
336 strcpy(target_room, TWITROOM);
338 /* Load the message into memory */
339 msg = (struct CtdlMessage *) malloc(sizeof(struct CtdlMessage));
340 memset(msg, 0, sizeof(struct CtdlMessage));
341 msg->cm_magic = CTDLMESSAGE_MAGIC;
342 msg->cm_anon_type = buffer[1];
343 msg->cm_format_type = buffer[2];
345 for (pos = 3; pos < size; ++pos) {
347 msg->cm_fields[field] = strdup(&buffer[pos+1]);
348 pos = pos + strlen(&buffer[(int)pos]);
351 /* Check for message routing */
352 if (msg->cm_fields['D'] != NULL) {
353 if (strcasecmp(msg->cm_fields['D'], config.c_nodename)) {
355 /* route the message */
356 Buf = NewStrBufPlain(msg->cm_fields['D'], -1);
357 if (CtdlIsValidNode(&nexthop,
363 /* prepend our node to the path */
364 if (msg->cm_fields['P'] != NULL) {
365 oldpath = msg->cm_fields['P'];
366 msg->cm_fields['P'] = NULL;
369 oldpath = strdup("unknown_user");
371 size = strlen(oldpath) + SIZ;
372 msg->cm_fields['P'] = malloc(size);
373 snprintf(msg->cm_fields['P'], size, "%s!%s",
374 config.c_nodename, oldpath);
377 /* serialize the message */
378 serialize_message(&sermsg, msg);
381 if (StrLength(nexthop) == 0) {
392 QN_syslog(LOG_DEBUG, "Appending to %s\n", filename);
393 fp = fopen(filename, "ab");
395 fwrite(sermsg.ser, sermsg.len, 1, fp);
399 QN_syslog(LOG_ERR, "%s: %s\n", filename, strerror(errno));
402 CtdlFreeMessage(msg);
407 else { /* invalid destination node name */
411 "A message you sent could not be delivered due to an invalid destination node"
412 " name. Please check the address and try sending the message again.\n");
421 * Check to see if we already have a copy of this message, and
422 * abort its processing if so. (We used to post a warning to Aide>
423 * every time this happened, but the network is now so densely
424 * connected that it's inevitable.)
426 if (network_usetable(msg) != 0) {
427 CtdlFreeMessage(msg);
431 /* Learn network topology from the path */
432 if ((msg->cm_fields['N'] != NULL) && (msg->cm_fields['P'] != NULL)) {
433 NetworkLearnTopology(msg->cm_fields['N'],
439 /* Is the sending node giving us a very persuasive suggestion about
440 * which room this message should be saved in? If so, go with that.
442 if (msg->cm_fields['C'] != NULL) {
443 safestrncpy(target_room, msg->cm_fields['C'], sizeof target_room);
446 /* Otherwise, does it have a recipient? If so, validate it... */
447 else if (msg->cm_fields['R'] != NULL) {
448 recp = validate_recipients(msg->cm_fields['R'], NULL, 0);
449 if (recp != NULL) if (recp->num_error != 0) {
451 "A message you sent could not be delivered due to an invalid address.\n"
452 "Please check the address and try sending the message again.\n");
454 free_recipients(recp);
455 QNM_syslog(LOG_DEBUG, "Bouncing message due to invalid recipient address.\n");
458 strcpy(target_room, ""); /* no target room if mail */
461 /* Our last shot at finding a home for this message is to see if
462 * it has the O field (Originating room) set.
464 else if (msg->cm_fields['O'] != NULL) {
465 safestrncpy(target_room, msg->cm_fields['O'], sizeof target_room);
468 /* Strip out fields that are only relevant during transit */
469 if (msg->cm_fields['D'] != NULL) {
470 free(msg->cm_fields['D']);
471 msg->cm_fields['D'] = NULL;
473 if (msg->cm_fields['C'] != NULL) {
474 free(msg->cm_fields['C']);
475 msg->cm_fields['C'] = NULL;
478 /* save the message into a room */
479 if (PerformNetprocHooks(msg, target_room) == 0) {
480 msg->cm_flags = CM_SKIP_HOOKS;
481 CtdlSubmitMsg(msg, recp, target_room, 0);
483 CtdlFreeMessage(msg);
484 free_recipients(recp);
489 * Process a single message from a single file from the inbound queue
491 void network_process_message(FILE *fp,
494 HashList *working_ignetcfg,
495 HashList *the_netmap,
502 hold_pos = ftell(fp);
503 size = msgend - msgstart + 1;
504 buffer = malloc(size);
505 if (buffer != NULL) {
506 fseek(fp, msgstart, SEEK_SET);
507 if (fread(buffer, size, 1, fp) > 0) {
508 network_process_buffer(buffer,
517 fseek(fp, hold_pos, SEEK_SET);
522 * Process a single file from the inbound queue
524 void network_process_file(char *filename,
525 HashList *working_ignetcfg,
526 HashList *the_netmap,
529 struct CitContext *CCC = CC;
531 long msgstart = (-1L);
537 fp = fopen(filename, "rb");
539 QN_syslog(LOG_CRIT, "Error opening %s: %s\n", filename, strerror(errno));
543 fseek(fp, 0L, SEEK_END);
544 QN_syslog(LOG_INFO, "network: processing %ld bytes from %s\n", ftell(fp), filename);
547 /* Look for messages in the data stream and break them out */
548 while (ch = getc(fp), ch >= 0) {
551 if (msgstart >= 0L) {
553 network_process_message(fp,
567 if (msgstart >= 0L) {
568 network_process_message(fp,
582 * Process anything in the inbound queue
584 void network_do_spoolin(HashList *working_ignetcfg, HashList *the_netmap, int *netmap_changed)
586 struct CitContext *CCC = CC;
589 struct dirent *filedir_entry;
591 char filename[PATH_MAX];
592 static time_t last_spoolin_mtime = 0L;
597 * Check the spoolin directory's modification time. If it hasn't
598 * been touched, we don't need to scan it.
600 if (stat(ctdl_netin_dir, &statbuf)) return;
601 if (statbuf.st_mtime == last_spoolin_mtime) {
602 QNM_syslog(LOG_DEBUG, "network: nothing in inbound queue\n");
605 last_spoolin_mtime = statbuf.st_mtime;
606 QNM_syslog(LOG_DEBUG, "network: processing inbound queue\n");
609 * Ok, there's something interesting in there, so scan it.
611 dp = opendir(ctdl_netin_dir);
612 if (dp == NULL) return;
614 d = (struct dirent *)malloc(offsetof(struct dirent, d_name) + PATH_MAX + 1);
620 while ((readdir_r(dp, d, &filedir_entry) == 0) &&
621 (filedir_entry != NULL))
623 #ifdef _DIRENT_HAVE_D_NAMLEN
624 d_namelen = filedir_entry->d_namelen;
627 d_namelen = strlen(filedir_entry->d_name);
630 #ifdef _DIRENT_HAVE_D_TYPE
631 d_type = filedir_entry->d_type;
635 if ((d_namelen > 1) && filedir_entry->d_name[d_namelen - 1] == '~')
636 continue; /* Ignore backup files... */
638 if ((d_namelen == 1) &&
639 (filedir_entry->d_name[0] == '.'))
642 if ((d_namelen == 2) &&
643 (filedir_entry->d_name[0] == '.') &&
644 (filedir_entry->d_name[1] == '.'))
647 if (d_type == DT_UNKNOWN) {
655 filedir_entry->d_name);
657 if (lstat(path, &s) == 0) {
658 d_type = IFTODT(s.st_mode);
666 case DT_LNK: /* TODO: check whether its a file or a directory */
674 network_process_file(filename,
686 * Step 1: consolidate files in the outbound queue into one file per neighbor node
687 * Step 2: delete any files in the outbound queue that were for neighbors who no longer exist.
689 void network_consolidate_spoolout(HashList *working_ignetcfg, HashList *the_netmap)
691 struct CitContext *CCC = CC;
697 struct dirent *filedir_entry;
699 char spooloutfilename[PATH_MAX];
700 char filename[PATH_MAX];
701 const StrBuf *nexthop;
709 /* Step 1: consolidate files in the outbound queue into one file per neighbor node */
710 d = (struct dirent *)malloc(offsetof(struct dirent, d_name) + PATH_MAX + 1);
711 if (d == NULL) return;
713 dp = opendir(ctdl_netout_dir);
719 NextHop = NewStrBuf();
720 memset(&IOB, 0, sizeof(IOBuffer));
721 memset(&FDIO, 0, sizeof(FDIOBuffer));
724 while ((readdir_r(dp, d, &filedir_entry) == 0) &&
725 (filedir_entry != NULL))
727 #ifdef _DIRENT_HAVE_D_NAMLEN
728 d_namelen = filedir_entry->d_namelen;
731 d_namelen = strlen(filedir_entry->d_name);
734 #ifdef _DIRENT_HAVE_D_TYPE
735 d_type = filedir_entry->d_type;
739 if (d_type == DT_DIR)
742 if ((d_namelen > 1) && filedir_entry->d_name[d_namelen - 1] == '~')
743 continue; /* Ignore backup files... */
745 if ((d_namelen == 1) &&
746 (filedir_entry->d_name[0] == '.'))
749 if ((d_namelen == 2) &&
750 (filedir_entry->d_name[0] == '.') &&
751 (filedir_entry->d_name[1] == '.'))
754 pch = strchr(filedir_entry->d_name, '@');
762 filedir_entry->d_name);
765 filedir_entry->d_name,
766 pch - filedir_entry->d_name);
768 snprintf(spooloutfilename,
769 sizeof spooloutfilename,
774 QN_syslog(LOG_DEBUG, "Consolidate %s to %s\n", filename, ChrPtr(NextHop));
775 if (CtdlNetworkTalkingTo(SKEY(NextHop), NTT_CHECK)) {
778 "Currently online with %s - skipping for now\n",
786 const char *err = NULL;
787 CtdlNetworkTalkingTo(SKEY(NextHop), NTT_ADD);
789 infd = open(filename, O_RDONLY);
793 "failed to open %s for reading due to %s; skipping.\n",
794 filename, strerror(errno)
796 CtdlNetworkTalkingTo(SKEY(NextHop), NTT_REMOVE);
800 outfd = open(spooloutfilename,
801 O_EXCL|O_CREAT|O_NONBLOCK|O_WRONLY,
805 outfd = open(spooloutfilename,
806 O_EXCL|O_NONBLOCK|O_WRONLY,
812 "failed to open %s for reading due to %s; skipping.\n",
813 spooloutfilename, strerror(errno)
816 CtdlNetworkTalkingTo(SKEY(NextHop), NTT_REMOVE);
820 dsize = lseek(outfd, 0, SEEK_END);
821 lseek(outfd, -dsize, SEEK_SET);
823 fstat(infd, &statbuf);
824 fsize = statbuf.st_size;
826 fsize = lseek(infd, 0, SEEK_END);
829 FDIOBufferInit(&FDIO, &IOB, outfd, fsize + dsize);
830 FDIO.ChunkSendRemain = fsize;
831 FDIO.TotalSentAlready = dsize;
834 do {} while ((FileMoveChunked(&FDIO, &err) > 0) && (err == NULL));
841 "failed to append to %s [%s]; rolling back..\n",
842 spooloutfilename, strerror(errno)
844 /* whoops partial append?? truncate spooloutfilename again! */
845 ftruncate(outfd, dsize);
847 FDIOBufferDelete(&FDIO);
850 CtdlNetworkTalkingTo(SKEY(NextHop), NTT_REMOVE);
856 FreeStrBuf(&NextHop);
858 "skipping Spoolcleanup because of %d files unprocessed.\n",
865 /* Step 2: delete any files in the outbound queue that were for neighbors who no longer exist */
866 dp = opendir(ctdl_netout_dir);
868 FreeStrBuf(&NextHop);
873 while ((readdir_r(dp, d, &filedir_entry) == 0) &&
874 (filedir_entry != NULL))
876 #ifdef _DIRENT_HAVE_D_NAMLEN
877 d_namelen = filedir_entry->d_namelen;
880 d_namelen = strlen(filedir_entry->d_name);
883 #ifdef _DIRENT_HAVE_D_TYPE
884 d_type = filedir_entry->d_type;
888 if (d_type == DT_DIR)
891 if ((d_namelen == 1) &&
892 (filedir_entry->d_name[0] == '.'))
895 if ((d_namelen == 2) &&
896 (filedir_entry->d_name[0] == '.') &&
897 (filedir_entry->d_name[1] == '.'))
900 pch = strchr(filedir_entry->d_name, '@');
901 if (pch == NULL) /* no @ in name? consolidated file. */
905 filedir_entry->d_name,
906 pch - filedir_entry->d_name);
912 filedir_entry->d_name
915 i = CtdlIsValidNode(&nexthop,
921 if ( (i != 0) || (StrLength(nexthop) > 0) ) {
925 FreeStrBuf(&NextHop);
934 * It's ok if these directories already exist. Just fail silently.
936 void create_spool_dirs(void) {
937 if ((mkdir(ctdl_spool_dir, 0700) != 0) && (errno != EEXIST))
938 syslog(LOG_EMERG, "unable to create directory [%s]: %s", ctdl_spool_dir, strerror(errno));
939 if (chown(ctdl_spool_dir, CTDLUID, (-1)) != 0)
940 syslog(LOG_EMERG, "unable to set the access rights for [%s]: %s", ctdl_spool_dir, strerror(errno));
941 if ((mkdir(ctdl_netin_dir, 0700) != 0) && (errno != EEXIST))
942 syslog(LOG_EMERG, "unable to create directory [%s]: %s", ctdl_netin_dir, strerror(errno));
943 if (chown(ctdl_netin_dir, CTDLUID, (-1)) != 0)
944 syslog(LOG_EMERG, "unable to set the access rights for [%s]: %s", ctdl_netin_dir, strerror(errno));
945 if ((mkdir(ctdl_nettmp_dir, 0700) != 0) && (errno != EEXIST))
946 syslog(LOG_EMERG, "unable to create directory [%s]: %s", ctdl_nettmp_dir, strerror(errno));
947 if (chown(ctdl_nettmp_dir, CTDLUID, (-1)) != 0)
948 syslog(LOG_EMERG, "unable to set the access rights for [%s]: %s", ctdl_nettmp_dir, strerror(errno));
949 if ((mkdir(ctdl_netout_dir, 0700) != 0) && (errno != EEXIST))
950 syslog(LOG_EMERG, "unable to create directory [%s]: %s", ctdl_netout_dir, strerror(errno));
951 if (chown(ctdl_netout_dir, CTDLUID, (-1)) != 0)
952 syslog(LOG_EMERG, "unable to set the access rights for [%s]: %s", ctdl_netout_dir, strerror(errno));
958 CTDL_MODULE_INIT(network_spool)
962 CtdlREGISTERRoomCfgType(subpending, ParseSubPendingLine, 0, 5, SerializeGeneric, DeleteGenericCfgLine); /// todo: move this to mailinglist manager
963 CtdlREGISTERRoomCfgType(unsubpending, ParseUnSubPendingLine, 0, 4, SerializeGeneric, DeleteGenericCfgLine); /// todo: move this to mailinglist manager
964 CtdlREGISTERRoomCfgType(lastsent, ParseLastSent, 1, 1, SerializeLastSent, DeleteLastSent);
965 CtdlREGISTERRoomCfgType(ignet_push_share, ParseGeneric, 0, 2, SerializeGeneric, DeleteGenericCfgLine); // [remotenode|remoteroomname (optional)]// todo: move this to the ignet client
966 CtdlREGISTERRoomCfgType(listrecp, ParseGeneric, 0, 1, SerializeGeneric, DeleteGenericCfgLine);
967 CtdlREGISTERRoomCfgType(digestrecp, ParseGeneric, 0, 1, SerializeGeneric, DeleteGenericCfgLine);
968 CtdlREGISTERRoomCfgType(participate, ParseGeneric, 0, 1, SerializeGeneric, DeleteGenericCfgLine);
969 CtdlREGISTERRoomCfgType(roommailalias, ParseRoomAlias, 0, 1, SerializeGeneric, DeleteGenericCfgLine);
972 //////todo CtdlRegisterCleanupHook(destroy_network_queue_room);
974 return "network_spool";