X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_netspool.c;h=5055eabfa0bd9230a4bad7355dac7426c03b1b74;hb=aca7dd04d80f04b9cd61f740549ce370e76bc332;hp=5ddd1976e293f2550e2691d721bbd38a3cbb510a;hpb=797b2e5f51c83d2f25f1d29957a2ffd99710e90e;p=citadel.git diff --git a/citadel/modules/network/serv_netspool.c b/citadel/modules/network/serv_netspool.c index 5ddd1976e..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);