// Message-related protocol commands for Citadel clients
//
-// Copyright (c) 1987-2022 by the citadel.org team
+// Copyright (c) 1987-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.
{
tValueLen = extract_token(tvalue, buf, 1, '|', sizeof tvalue);
if (tValueLen >= 0) {
- CM_SetField(template, f, tvalue, tValueLen);
+ CM_SetField(template, f, tvalue);
}
}
}
// posting into a mailing list room? set the envelope from
// to the actual mail address so others get a valid reply-to-header.
if ((valid != NULL) && (valid->num_room == 1) && !IsEmptyStr(valid->recp_orgroom)) {
- CM_SetField(msg, eenVelopeTo, valid->recp_orgroom, strlen(valid->recp_orgroom));
+ CM_SetField(msg, eenVelopeTo, valid->recp_orgroom);
}
if (msg != NULL) {