X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_netspool.c;h=5055eabfa0bd9230a4bad7355dac7426c03b1b74;hb=aca7dd04d80f04b9cd61f740549ce370e76bc332;hp=da479d7a154076a6e7090339515f8eeb9fb36df0;hpb=6150ec8f254e46e453251cac570b6d7816294a9a;p=citadel.git diff --git a/citadel/modules/network/serv_netspool.c b/citadel/modules/network/serv_netspool.c index da479d7a1..5055eabfa 100644 --- a/citadel/modules/network/serv_netspool.c +++ b/citadel/modules/network/serv_netspool.c @@ -2,7 +2,7 @@ * This module handles shared rooms, inter-Citadel mail, and outbound * mailing list processing. * - * Copyright (c) 2000-2018 by the citadel.org team + * Copyright (c) 2000-2020 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. @@ -146,24 +146,6 @@ int HaveSpoolConfig(OneRoomNetCfg* RNCfg) return interested; } -void Netmap_AddMe(struct CtdlMessage *msg, const char *defl, long defllen) -{ - long node_len; - char buf[SIZ]; - - /* prepend our node to the path */ - if (CM_IsEmpty(msg, eMessagePath)) { - CM_SetField(msg, eMessagePath, defl, defllen); - } - node_len = strlen(CtdlGetConfigStr("c_nodename")); - if (node_len >= SIZ) - node_len = SIZ - 1; - memcpy(buf, CtdlGetConfigStr("c_nodename"), node_len); - buf[node_len] = '!'; - buf[node_len + 1] = '\0'; - CM_PrependToField(msg, eMessagePath, buf, node_len + 1); -} - void InspectQueuedRoom(SpoolControl **pSC, RoomProcList *room_to_spool, @@ -235,7 +217,7 @@ void CalcListID(SpoolControl *sc) #define MAX_LISTIDLENGTH 150 // Load the room banner as the list description - struct CtdlMessage *msg = CtdlFetchMessage(sc->room.msgnum_info, 1, 1); + struct CtdlMessage *msg = CtdlFetchMessage(sc->room.msgnum_info, 1); if (msg != NULL) { CC->redirect_buffer = NewStrBufPlain(NULL, SIZ); CtdlOutputPreLoadedMsg(msg, MT_CITADEL, HEADERS_NONE, 0, 0, 0); @@ -424,10 +406,6 @@ void create_spool_dirs(void) { syslog(LOG_EMERG, "netspool: unable to create directory [%s]: %s", ctdl_nettmp_dir, strerror(errno)); if (chown(ctdl_nettmp_dir, CTDLUID, (-1)) != 0) syslog(LOG_EMERG, "netspool: unable to set the access rights for [%s]: %s", ctdl_nettmp_dir, strerror(errno)); - if ((mkdir(ctdl_netout_dir, 0700) != 0) && (errno != EEXIST)) - syslog(LOG_EMERG, "netspool: unable to create directory [%s]: %s", ctdl_netout_dir, strerror(errno)); - if (chown(ctdl_netout_dir, CTDLUID, (-1)) != 0) - syslog(LOG_EMERG, "netspool: unable to set the access rights for [%s]: %s", ctdl_netout_dir, strerror(errno)); }