time_t now;
/* Bail out if we can't generate a message ID */
- if ((msg == NULL) || (msg->cm_fields[emessageId] == NULL) || (IsEmptyStr(msg->cm_fields[emessageId])))
+ if ((msg == NULL) || CM_IsEmpty(msg, emessageId))
{
return(0);
}
msgid = NewStrBufPlain(msg->cm_fields[emessageId], -1);
if (haschar(ChrPtr(msgid), '@') == 0) {
StrBufAppendBufPlain(msgid, HKEY("@"), 0);
- if (msg->cm_fields[eNodeName] != NULL) {
+ if (!CM_IsEmpty(msg, eNodeName)) {
StrBufAppendBufPlain(msgid, msg->cm_fields[eNodeName], -1, 0);
}
else {
/* Clean up */
if (valid != NULL) free_recipients(valid);
- CtdlFreeMessage(msg);
+ CM_Free(msg);
QNM_syslog(LOG_DEBUG, "leaving network_bounce()\n");
}