// This module delivers messages to mailing lists.
//
-// Copyright (c) 2002-2022 by the citadel.org team
+// Copyright (c) 2002-2023 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.
// If the subject line does not contain the name of the room, add it now.
if (!bmstrcasestr(TheMessage->cm_fields[eMsgSubject], CC->room.QRname)) {
snprintf(buf, sizeof buf, "[%s] %s", CC->room.QRname, TheMessage->cm_fields[eMsgSubject]);
- CM_SetField(TheMessage, eMsgSubject, buf, strlen(buf));
+ CM_SetField(TheMessage, eMsgSubject, buf);
}
// From: should be set to the list address because doing otherwise makes DKIM parsers angry.
for (ch=buf; *ch; ++ch) {
if (isspace(*ch)) *ch = '_';
}
- CM_SetField(TheMessage, erFc822Addr, buf, strlen(buf));
- CM_SetField(TheMessage, eReplyTo, buf, strlen(buf));
+ CM_SetField(TheMessage, erFc822Addr, buf);
+ CM_SetField(TheMessage, eReplyTo, buf);
// With that out of the way, let's figure out who this message needs to be sent to.
char *recipients = malloc(strlen(ld->netconf));