// Ok, if we got this far, look into the situation further...
- if (CM_IsEmpty(msg, eMesageText)) return(0);
+ if (CM_IsEmpty(msg, eMessageText)) return(0);
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*vcard_extract_vcard,
NULL, NULL,
&v, // user data ptr - put the vcard here
// 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 */
StrBufAppendBufPlain(buf, HKEY("Content-type: " VCARD_MIME_TYPE "\r\n\r\n"), 0);
StrBufAppendBufPlain(buf, ser, serlen, 0);
StrBufAppendBufPlain(buf, HKEY("\r\n"), 0);
- CM_SetAsFieldSB(msg, eMesageText, &buf);
+ CM_SetAsFieldSB(msg, eMessageText, &buf);
free(ser);
}
if (!is_UserConf && !is_GAB) return(0);
- if (CM_IsEmpty(msg, eMesageText))
+ if (CM_IsEmpty(msg, eMessageText))
return 0;
- ptr = msg->cm_fields[eMesageText];
+ ptr = msg->cm_fields[eMessageText];
CC->vcard_updated_by_ldap=0; /* As this will write LDAP's previous changes, disallow LDAP change auth until next LDAP change. */
/* Store our friendly/display name in memory */
if (is_MY_UserConf) {
- v = vcard_load(msg->cm_fields[eMesageText]);
+ v = vcard_load(msg->cm_fields[eMessageText]);
extract_friendly_name(CC->cs_inet_fn, sizeof CC->cs_inet_fn, v);
vcard_free(v);
}
msg = CtdlFetchMessage(VCmsgnum, 1);
if (msg == NULL) return vcard_new();
- v = vcard_load(msg->cm_fields[eMesageText]);
+ v = vcard_load(msg->cm_fields[eMessageText]);
CM_Free(msg);
return v;
}
msg = CtdlFetchMessage(msgnum, 1);
if (msg == NULL) return;
- mime_parser(CM_RANGE(msg, eMesageText),
+ mime_parser(CM_RANGE(msg, eMessageText),
*dvca_mime_callback, /* callback function */
NULL, NULL,
NULL, /* user data */
msg = CtdlFetchMessage(msgnum, 1);
if (msg == NULL) return;
- v = vcard_load(msg->cm_fields[eMesageText]);
+ v = vcard_load(msg->cm_fields[eMessageText]);
CM_Free(msg);
i = 0;
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) {
StrBufAppendBufPlain(buf, HKEY("Content-type: " VCARD_MIME_TYPE "\r\n\r\n"), 0);
StrBufAppendBufPlain(buf, ser, serlen, 0);
StrBufAppendBufPlain(buf, HKEY("\r\n"), 0);
- CM_SetAsFieldSB(vmsg, eMesageText, &buf);
+ CM_SetAsFieldSB(vmsg, eMessageText, &buf);
free(ser);
}
vcard_free(v);