// Make the author of the message the name of the user.
if (!IsEmptyStr(usbuf.fullname)) {
- CM_SetField(msg, eAuthor, usbuf.fullname, strlen(usbuf.fullname));
+ CM_SetField(msg, eAuthor, usbuf.fullname);
}
}
snprintf(buf, sizeof buf, VCARD_EXT_FORMAT, msg->cm_fields[eAuthor], NODENAME);
}
else {
- // If the vCard has no UID, then give it one. */
+ // If the vCard has no UID, then give it one.
generate_uuid(buf);
}
vcard_set_prop(v, "UID", buf, 0);
s = vcard_get_prop(v, "UID", 1, 0, 0);
if (!IsEmptyStr(s)) {
- CM_SetField(msg, eExclusiveID, s, strlen(s));
+ CM_SetField(msg, eExclusiveID, s);
if (CM_IsEmpty(msg, eMsgSubject)) {
CM_CopyField(msg, eMsgSubject, eExclusiveID);
}
s = vcard_get_prop(v, "N", 1, 0, 0);
}
if (!IsEmptyStr(s)) {
- CM_SetField(msg, eMsgSubject, s, strlen(s));
+ CM_SetField(msg, eMsgSubject, s);
}
/* Re-serialize it back into the msg body */
vmsg->cm_magic = CTDLMESSAGE_MAGIC;
vmsg->cm_anon_type = MES_NORMAL;
vmsg->cm_format_type = FMT_RFC822;
- CM_SetField(vmsg, eAuthor, HKEY("Citadel"));
+ CM_SetField(vmsg, eAuthor, "Citadel");
s = vcard_get_prop(v, "UID", 1, 0, 0);
if (!IsEmptyStr(s)) {
- CM_SetField(vmsg, eExclusiveID, s, strlen(s));
+ CM_SetField(vmsg, eExclusiveID, s);
}
ser = vcard_serialize(v);
if (ser != NULL) {