if (!IsEmptyStr(ret->recp_room)) {
strcat(ret->recp_room, "|");
}
- strcat(ret->recp_room, &this_recp[5]);
+ strcat(ret->recp_room, CC->room.QRname);
if (!IsEmptyStr(ret->recp_orgroom)) {
strcat(ret->recp_orgroom, "|");
}
- strcat(ret->recp_orgroom, org_recp);
+ strcat(ret->recp_orgroom, this_recp);
}
}
}
free(all_recps);
- if ((valid != NULL) && (valid->num_room == 1) && !IsEmptyStr(valid->recp_orgroom))
- {
- /* posting into an ML room? set the envelope from
- * to the actual mail address so others get a valid
- * reply-to-header.
- */
+ // 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));
}